From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079042215471.tru64-unix-managers.marc@archive.invalid> From: sherman () pet ! wustl ! edu (Sherman Owens) Date: Tue, 04 May 1999 19:13:23 +0000 To: tru64-unix-managers Subject: Befuddled: Sed on TRu64 Unix X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079042215471 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