Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!VAX1.CC.UAKRON.EDU!math-cs.kent.edu!news From: gorpong@encore.kent.edu (Gordon C. Galligher) Newsgroups: comp.unix.shell Subject: Re: Why does !!:gs/:/ / change only one colon? Keywords: tcsh, csh, getting commands into the history list Message-ID: <1990Sep6.184655.19638@math-cs.kent.edu> Date: 6 Sep 90 18:46:55 GMT References: <1990Sep6.030354.27810@cs.umn.edu> Distribution: na Organization: Kent State University Lines: 12 In article <1990Sep6.030354.27810@cs.umn.edu> rantapaa@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.