Re: extracting information
From: John W. Krahn (krahnj_at_acm.org)
Date: 02/28/04
- Next message: Alan Connor: "Re: sed problem...simpler solution?"
- Previous message: Carlos J. G. Duarte: "Re: transfering the "history" of a normal user to the su-shell possible"
- In reply to: Lars Roland: "extracting information"
- Next in thread: rakesh sharma: "Re: extracting information"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 28 Feb 2004 00:54:23 GMT
Lars Roland wrote:
>
> I have a large collection of files where most of the information's are useless,
> what i want is to extract the information i need out of them and
> delete the rest.
>
> Eg. the files contain a line starting with:
>
> Information:
>
> What i want to do is to delete the rest of the file except the line
> starting with Information: - can this be done ???
perl -i -ne'print if /^Information:/' *
John
-- use Perl; program fulfillment
- Next message: Alan Connor: "Re: sed problem...simpler solution?"
- Previous message: Carlos J. G. Duarte: "Re: transfering the "history" of a normal user to the su-shell possible"
- In reply to: Lars Roland: "extracting information"
- Next in thread: rakesh sharma: "Re: extracting information"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|