Why does !!:gs/:/ / change only one colon?

Gordon C. Galligher gorpong at encore.kent.edu
Fri Sep 7 04:46:55 AEST 1990


In article <1990Sep6.030354.27810 at cs.umn.edu> rantapaa at cs.umn.edu 
(Erik E. Rantapaa) writes:
>While I've got your attention, I should also ask if anyone
>has a better way to do the following in tcsh:
>
>     echo "set today = (`date`)" > /tmp/.date
>     source -h /tmp/.date
>     !set:s/:/ /:s/:/ /

Try:  set today = (`date | tr ':' ' '`)

		-- Gordon.



More information about the Comp.unix.shell mailing list