Re: [SLE] grep question ...

From: Jerry Feldman (gaf_at_blu.org)
Date: 04/27/05

  • Next message: William Gallafent: "Re: [SLE] grep question ..."
    To: suse-linux-e@suse.com
    Date: Wed, 27 Apr 2005 13:03:16 -0400
    
    

    On Wednesday 27 April 2005 11:46 am, James Hatridge wrote:
    > Hi all...
    >
    > I have a file that I want to use this command on:
    >
    > grep "USD" >> US.txt
    >
    > The file has USD twice in it. How do I tell grep to stop after the first
    > find?
    Use the -m (or --mcount) command line option:
    grep -m 1 USD * >> US.txt

    -- 
    Jerry Feldman <gaf@blu.org>
    Boston Linux and Unix user group
    http://www.blu.org PGP key id:C5061EA9
    PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: William Gallafent: "Re: [SLE] grep question ..."

    Relevant Pages

    • [SLE] Re: MySQLd question ...
      ... On Thursday 04 September 2003 17:53, James Hatridge wrote: ... Strange - I have used just this command in a script on a stock 8.2 install, ... The line in the PHP script was: ... Change the two variables to real names (and amend the column definitions of ...
      (SuSE)
    • Re: [SLE] Permission Denied problem on modprobe.conf.local
      ... To see if it is a directory, use the following command: ... Check the headers for your unsubscription address ... Also check the archives at http://lists.suse.com ...
      (SuSE)
    • RE: [SLE] preserving files creation time
      ... >>> the number 1) the results of the command are used. ... Check the headers for your unsubscription address ... Also check the archives at http://lists.suse.com ...
      (SuSE)
    • [SLE] streamripper http://www.shoutcast.com..................
      ... I followed the command structure according to the attached readme, ... Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com -- ...
      (SuSE)
    • RE: [SLE] File Counts
      ... I tried your command and got back the following error -- ... Check the headers for your unsubscription address ... Also check the archives at http://lists.suse.com ... Please read the FAQs: suse-linux-e-faq@suse.com ...
      (SuSE)