Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Digest Number 1220

Expand Messages
  • Don
    ... perl -i.bak -ne print unless /^he/i; myinput.fil HTH - Don __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier.
    Message 1 of 1 , May 27, 2003
    • 0 Attachment
      >From: "sara_samsara5" <perl-freak@...>
      >Subject: Re: (Addendum) Perl program to delete lines from a file


      >okay,

      >I need the same thing, to delete a line from text file. I went
      >through all the previous replies and have made my code. But I wanted
      >a modification that after deleting the line file, the same file
      >should be re-written rather than creating a new one.

      perl -i.bak -ne 'print unless /^he/i;' myinput.fil

      HTH - Don

      __________________________________
      Do you Yahoo!?
      The New Yahoo! Search - Faster. Easier. Bingo.
      http://search.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.