Article View: dc.org.linux-users
Article #3822Re: general unix question (sed)
From: Michael Shields
Date: Mon, 10 Jul 1995 00:00
Date: Mon, 10 Jul 1995 00:00
16 lines
969 bytes
969 bytes
In article <3tq1pt$tp@clarknet.clark.net>, aka campbell <indierok@clark.net> 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 > > 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 This works for me. I'm using bash 1.14.4 and GNU sed 2.05. Could you give more details? -- Shields.
Technical Details
Message-ID:
<3ts90e$nre@yage.tembel.org>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: shields@tembel.org (Michael Shields) Subject: Re: general unix question (sed) Date: 1995/07/10 Message-ID: <3ts90e$nre@yage.tembel.org> X-Deja-AN: 106054660 references: <3tq1pt$tp@clarknet.clark.net> organization: Tembel's Hedonic Commune nntp-posting-user: shields newsgroups: dc.org.linux-users