Tail

From Hackepedia
Revision as of 09:59, 3 July 2008 by Pbug (talk | contribs) (New page: Tail takes the last few lines in a file, like so: francisco$ tail -1 /etc/passwd testuser:*:1001:1001:test:/usr/home/testuser:/bin/ksh This can also be achieve with sed and awk...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Tail takes the last few lines in a file, like so:

francisco$ tail -1 /etc/passwd
testuser:*:1001:1001:test:/usr/home/testuser:/bin/ksh

This can also be achieve with sed and awk, but requires a bit more programming in them.