🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1084

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

#1084
From: Gordon C. Galligher
Date: Thu, 06 Sep 1990 18:46
12 lines
894 bytes
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.
Technical Details
Message-ID: <1990Sep6.184655.19638@math-cs.kent.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!VAX1.CC.UAKRON.EDU!math-cs.kent.edu!news
References: <1990Sep6.030354.27810@cs.umn.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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