Find the answer to your Linux question:
Results 1 to 2 of 2
Hello everyone,I want to know that is there any method to grep a particular data from a file without using the "cat --- | grep ' ' " command....I need ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4

    Grep!!

    Hello everyone,I want to know that is there any method to grep a particular data from a file without using the "cat --- | grep ' ' " command....I need to use a system call for this functionality.

  2. #2
    Just Joined!
    Join Date
    May 2010
    Posts
    6
    Hi salmanansari,

    You can do a simple filter of lines containing one or more strings (patterns) over a file using grep in this way.

    Code:
    grep pattern inputfile > output
    Grep have many search options, depending what we´re looking for.

    I´m not sure is what your need.

    Hope it helps,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...