sed -n '1!G;h;$p' file1 > file2
Actually, a command tac does the job too.tac file1 > file2
tac is whimsically reverse of cat command :-)
Wow, I was not aware of it.
Actually, a command tac does the job too.
ReplyDeletetac file1 > file2
tac is whimsically reverse of cat command :-)
ReplyDeleteWow, I was not aware of it.
ReplyDelete