Collection of linux tricks

By: | Comments: 11 Comments

Posted in categories: Uncategorized

1) replace “RETURN” with ” ” in a text file => to combine multiple lines of a file into a single line.
cat file | tr ‘\n’ ‘ ‘ > file2

11 Comments

Leave a Reply