skip to main
|
skip to sidebar
Tech Notes
Monday, September 14, 2009
Output a file in reverse order
Use the tac command to output a file in reverse order, last line first. For example:
toro@moutere:~$ echo -e "1\n2\n3\n4" | tac
4
3
2
1
toro@moutere:~$
Sources
http://txt.binnyva.com/2008/02/reverse-a-file/
No comments:
Post a Comment
Newer Post
Older Post
Home
Search This Blog
About Me
Toro Hill
Freelance Web Developer.
http://karere.co.nz
http://accountaneer.com
View my complete profile
Labels
browsers
(3)
cli
(6)
DE
(1)
development
(5)
editors
(5)
filesystem
(6)
gui
(6)
hardware
(4)
images
(3)
linux
(25)
logs
(2)
mail
(1)
misc
(7)
music
(1)
network
(8)
pdfs
(4)
printing
(2)
security
(1)
sound
(2)
sync
(2)
web
(3)
windows
(12)
No comments:
Post a Comment