Article View: dc.org.linux-users
Article #3825Re: general unix question (sed)
From: Charles Meredith
Date: Tue, 11 Jul 1995 00:00
Date: Tue, 11 Jul 1995 00:00
14 lines
798 bytes
798 bytes
indierok@clark.net (aka campbell) wrote:
>ok... i'm trying to do this from within a bash script...
>first of all it works fine from the commmand line:
>OLD='Jun 9 15:57'
>NEW='Jul 9 10:10'
>sed s/"$OLD"/"$NEW"/g file >newfile
I'm not sure, but I think this should be:
sed s/\"$OLD\"/\"$NEW\"/g file >newfile
Let me know if it works....
Technical Details
Message-ID:
<3tsebf$i8u@news.cais.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3tq1pt$tp@clarknet.clark.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11663c,20180fab603243c7 X-Google-Attributes: gid11663c,public From: chazz@cais.com (Charles Meredith) Subject: Re: general unix question (sed) Date: 1995/07/11 Message-ID: <3tsebf$i8u@news.cais.com> X-Deja-AN: 106054661 references: <3tq1pt$tp@clarknet.clark.net> organization: Capital Area Internet Service info@cais.com 703-448-4470 newsgroups: dc.org.linux-users