View Single Post
  #2   (View Single Post)  
Old 9th November 2014
gso gso is offline
Port Guard
 
Join Date: Nov 2014
Posts: 35
Default

tail(1) command is is useful to pick up the last line:
Code:
tail -n1 file.txt
head(1) command similarly:
Code:
head -n1 file.txt
Reply With Quote