Find the answer to your Linux question:
Results 1 to 2 of 2
i have a user entering a valid name. The script is supposed to search a file and post the contents of the name to the screen but i don't know ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2004
    Posts
    1

    grep command


    i have a user entering a valid name. The script is supposed to search a file and post the contents of the name to the screen but i don't know how to use the grep command. This is a line from the file


    Porsche; Williams, Bianca


    if they enter Porsche the whole line should print to the screen

  2. #2
    flw
    flw is offline
    Linux Engineer
    Join Date
    Mar 2003
    Location
    U.S.A.
    Posts
    1,025
    Have you looked at http://www.linuxforums.org/forum/viewtopic.php?t=1154 ?

    It contains the standard way most people use grep.
    Dan

    \"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"

Posting Permissions

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