Post Reply 
Linux/Bash help - redirection
Author Message
Tetris999
..............................

Posts: 2,390.4622
Threads: 298
Joined: 15th Apr 2007
Reputation: -6.7936
E-Pigs: 82.5657
Offline
Post: #6
RE: Linux/Bash help - redirection
Here's something that can perform what you want:

Code:
sed -i ':a;N;$!ba;s/\n/\n\n/g' test.txt

copied from: http://stackoverflow.com/questions/12519...-newline-n

This explains most of the stuff, but is still pretty poor documentation (even though the author says ITS THE BEST EVRRRR)
http://www.grymoire.com/Unix/Said.html


MY SIG IS FUCKING DEAD
(This post was last modified: 18/01/2013 09:56 PM by Tetris999.)
18/01/2013 09:00 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Linux/Bash help - redirection - whjms - 18/01/2013, 06:10 AM
RE: Linux/Bash help - redirection - Joom - 18/01/2013, 08:13 AM
RE: Linux/Bash help - redirection - whjms - 18/01/2013, 12:28 PM
RE: Linux/Bash help - redirection - Tetris999 - 18/01/2013 09:00 PM
RE: Linux/Bash help - redirection - lembas - 18/01/2013, 09:49 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: