TAIL COMMAND IN LINUX
The tail command is a command-line utility for outputting the last part of files given to it via standard input.
Written By Sanjay Kumar
The tail command is a command-line utility for outputting the last part of files given to it via standard input.
- Print Last 10 lines of a txt files.
tail <file name>
- Print Last 10 lines of multiples txt files.
tail <file1><file2><file3>.....
- Print last n line of a txt file
tail -n <txt file>
- Print last n and combine multiple txt file
tail -q <file1><file 2> <file3>
How to watch a file for changes
tail -f <txt file >
if i change something the final result will be updated
if i change something the final result will be updated
- print last n characters in each line
tail -c<no of characters > <txt files>
Written By Sanjay Kumar
Comments
Post a Comment