home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!hplabs!ucbvax!mtxinu!sybase!robert
- From: robert@sybase.com (Robert Garvey)
- Newsgroups: comp.unix.questions
- Subject: Re: What does \!* mean in csh history subst ?
- Message-ID: <23143@sybase.sybase.com>
- Date: 5 Sep 92 00:10:13 GMT
- References: <1992Sep2.173037.16135@eng.ufl.edu>
- Sender: news@Sybase.COM
- Distribution: usa
- Organization: Sybase
- Lines: 26
-
- In article <1992Sep2.173037.16135@eng.ufl.edu>, zzang@whale.uucp (Zhuo Zang[~{j0WA~}]) writes:
- |> I am confused by the meaning of the
- |> csh history substitution \!* .
-
- Ah, csh history is inherently confusing to many.
-
- |> the man says it means: take word 1-$ from previou cmd.
- |> my question is: if the previous cmd have pipes, like
- |> > cat foo.1 | lpr
- |> what is the 1-$ ? if you use:
- |> >more !*
- |> ?: 1-$ is foo.1 or foo.1 |lpr
-
- You might want to have everything following a csh alias as parameters to
- the first command in a pipe, like:
- alias mtoday 'from \!* | /usr/bin/fgrep "`date | colrm 11`"'
-
- The words of a csh command shell include pipes, semicolons, and
- redirect symbols. If you would want to more the file in your example
- command line, use:
- more !:1
- --
- Robert Garvey robert@sybase.com {sun,lll-tis,pyramid,pacbell}!sybase!robert
- Sybase, Inc 6475 Christie Ave Emeryville, CA 94608-1010
-
- If Sybase were to pay employees for their opinions, they couldn't afford me.
-