Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Command used for File Processing in Linux


We need to process the files such as logs or source codes for different purpose. Basic understanding of each Command related to file processing is essential to reduce the effort that we put forth for the same.
Head and tail command is used to extract the top or bottom of the file contents. If we use head command, few lines from top of the file will be displayed and if we use Tail Command, bottom of the file content will be displayed. 
tail command can also be used more frequently to monitor the growth of file ( with -f option)
tr is used to translate characters such as converting from 
  • lower to upper case and vice versa
  • squeezing of spaces
  • converting the delimiter and so on
grep command is used to find the Matching Patterns in a file. This can be used for
  • To search the Matching patterns with ignoring cases
  • To count the matching patterns in file
  • To print other than matching patterns and so on





This post first appeared on All About Linux, please read the originial post: here

Share the post

Command used for File Processing in Linux

×

Subscribe to All About Linux

Get updates delivered right to your inbox!

Thank you for your subscription

×