From: sherman () pet ! wustl ! edu (Sherman Owens)
To: tru64-unix-managers
Subject: Befuddled: Sed on TRu64 Unix
Date: Tue, 04 May 1999 19:13:23 +0000 [thread overview]
Message-ID: <96079042215471.tru64-unix-managers.marc@archive.invalid> (raw)
Dear managers:
I have been writing shell script for years now. The following is
befuddling me.
If I do this it gives me what I want:
> echo "MAY-03-1999" | cut -f1,2 -d"-" | sed -e 'y/-0/'\ ''\ '/'
MAY 3 (Ntice the two spaces)
If I do this inside a script or on command line:
> set d = `echo "MAY-03-1999" | cut -f1,2 -d"-" | sed -e 's/-0/ /'`
> echo $d
MAY 3 (Notice one space, not what I want)
I have read the manual and used sed alot in the past.
Is this a DU 4.x problem?
Sincerely yours!!
Sherman Owens
sherman@pet.wustl.edu
reply other threads:[~1999-05-04 19:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox