Saturday, March 30, 2013

Simple Filters Commands In Linux


Simple Filters Commands In Linux

Filters are commands which accept data from standard input, manupulate it
and write the results to standard output.
Head -displays the lines at the top of the file
     -when used without any option it will display first 10 lines of the file
    usage:  head filename
    -n -> print  the first N lines instead of the first 10

tail - displays the lines at the end of the file. By default it will display last 10
lines of the file
usage: tail filename 

Simple Filters Commands In Linux


No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers