It is very common to use the 'tail' command to look at a file that is being written to in order to monitor the output of a process.
Most systems recognize the tail -f command for that purpose. You must then use an interrupt signal to stop it from looking at the active file.
Use the command 'head statusreport' (without the quotes)
tail -n 10 abc
The 'head' command can only deal with the start of the file, not the end. If you want X number of lines at the end of the file then use the 'tail' command. tail -5 filename will list the last 5 lines of the contents of filename.
Tail command is used to display the last lines of the file.Syntax:tail -n 3 file1-n 3 = no. of linesfile1 = filename
You can use the cat command combined with tailex:- cat filename | tailOr you can just use tail commandex:- tail filename
The tail command can be used to output the last part of a text file. The default is to show the last 10 lines of a file and options are available to override this.
$ cat filename | head
tail -10 anyfile | wc
tail -f /var/log/messages
You don't need a shell script to do this - just use the 'tail' command.
You can get a list of all the files in the current directory with the "ls -a" command.
A rat tail file. Or round file. Take the file to each individual link.