Befuddled: Sed on TRu64 Unix

From: Sherman Owens <sherman_at_pet.wustl.edu>
Date: Tue, 04 May 1999 14:13:23 -0500

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_at_pet.wustl.edu
Received on Tue May 04 1999 - 19:12:22 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT