Advertisement
flycat

Replase Enters to spaces and rev.

Mar 19th, 2015 (edited)
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.12 KB | None | 0 0
  1. cat file|paste -s -d ' '
  2. cat file|sed "s/ /\n/g"
  3.  
  4. # Remove empty lines:
  5. cat file|sed  '/^$/d'
  6. cat file|tr -s '\n'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement