tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Befuddled: Sed on TRu64 Unix
@ 1999-05-04 19:13 sherman
  0 siblings, 0 replies; only message in thread
From: sherman @ 1999-05-04 19:13 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-05-04 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-04 19:13 Befuddled: Sed on TRu64 Unix sherman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox