View the Last 10 Lines of Several Files


tail file1 file2

You can view the first 10 lines of several files at one time using head; unsurprisingly, you can do the same thing with tail.

$ tail Paradise_Lost.txt Miller's_Tale.txt ==> Paradise_Lost.txt <== To the subjected plain - then disappeared They, looking back, all the eastern side beheld Of Paradise, so late their happy seat, Waved over by that flaming brand; the gate With dreadful faces thronged and fiery arms. Some natural tears they dropped, but wiped them soon; The world was all before them, where to choose Their place of rest, and Providence their guide. They, hand in hand, with wandering steps and slow, Through Eden took their solitary way. ==> Miller's_Tale.txt <== With othes grete he was so sworn adoun That he was holde wood in al the toun; For every clerk anonright heeld with oother. They seyde, "The man is wood, my leeve brother"; And every wight gan laughen at this stryf. Thus swyved was this carpenteris wyf, For al his kepyng and his jalousye; And Absolon hath kist hir nether ye; And Nicholas is scalded in the towte. This tale is doon, and God save al the rowte! 


Also like head, tail includes a header/separator between the entries, which is helpful.



Linux Phrasebook
Linux Phrasebook
ISBN: 0672328380
EAN: 2147483647
Year: 2007
Pages: 288

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net