[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Command line search and replace



suggestion:

cat file | sed s/search/replace/gi >file2;cp file2 file1;

----- Original Message -----
From: "John Hasler" <john@dhh.gt.org>
To: <debian-user@lists.debian.org>
Sent: Monday, January 08, 2001 1:29 AM
Subject: Re: Command line search and replace


> csj writes:
> > Is there a tool to do a search-and-replace from the command line?
> > Something along the lines of:
>
> > replace "string one" "string foo" files-to-process
>
> Look at awk and sed.
> --
> John Hasler
> john@dhh.gt.org
> Dancing Horse Hill
> Elmwood, Wisconsin
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
>



Reply to: