Article View: dc.org.linux-users
Article #3815general unix question (sed)
From: aka campbell
Date: Mon, 10 Jul 1995 00:00
Date: Mon, 10 Jul 1995 00:00
23 lines
1067 bytes
1067 bytes
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
it replaces whatever is in OLD to whatever is in NEW.
but it won't work within a script...sed: command garbled: s/June 9 15:57
anyhelp would be appreciated.
thanks
--
--------------------------------------------------
"i wanna see movies of my dreams..."
mail: indierok@clark.net flames: /dev/null
http://www.clark.net/pub/indierok/
#indie
Technical Details
Message-ID:
<3tq1pt$tp@clarknet.clark.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11663c,20180fab603243c7,start X-Google-Attributes: gid11663c,public From: indierok@clark.net (aka campbell) Subject: general unix question (sed) Date: 1995/07/10 Message-ID: <3tq1pt$tp@clarknet.clark.net> X-Deja-AN: 105924184 content-type: TEXT/PLAIN; charset=ISO-8859-1 organization: Clark Internet Services, Inc., Ellicott City, MD USA mime-version: 1.0 newsgroups: dc.org.linux-users