home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.misc:3341 comp.unix.questions:10305 comp.sys.sgi:12785
- Newsgroups: comp.unix.misc,comp.unix.questions,comp.sys.sgi
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!underdog
- From: underdog@leland.Stanford.EDU (Dwight Joe)
- Subject: Super-Duper Search Command, TLINKing!
- Message-ID: <1992Aug23.035024.4904@leland.Stanford.EDU>
- Summary: A summary of the responses and a request for help on TLINKing!
- Keywords: recap of Super-Duper search command, grep
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: Miners for a Heart of Gold
- References: <1992Aug20.051431.12803@leland.Stanford.EDU>
- Date: Sun, 23 Aug 92 03:50:24 GMT
- Lines: 53
-
- In article <1992Aug20.051431.12803@leland.Stanford.EDU> underdog@leland.Stanford.EDU (Dwight Joe) writes:
- >...
- >It would be more useful to me if I could do the following:
- >
- > alias skan find . -exec grep $$ {} \; -print | pg
- >
- >Then, by typing "skan VALUE", I could look for the files with the
- >string "VALUE". Is it possible to do an alias with a dummy argument
- >like "$$"?
- >If not, how could I do it?
- >Please send e-mail.
-
- I received numerous replies, and here is the "best" one in terms of
- simplicity. (And I just know that we _all_ love simplicity in the
- "hideous" maze we call Unix.)
-
- I edited my .cshrc file to include the following command:
-
- alias skn 'find . -print | xargs grep \!:1 | pg'
-
- To use this scan "skn" command, I do the following.
-
- skn bozo_the_clown
-
- Then, the names of all files starting from my current level of the
- directory and below will be printed _if_ the accessed file has a
- string that matches "bozo_the_clown".
-
- Anyhow, thanks for the response. But I have yet another question.
- I am trying to create a symbolic link to a file. I used the command
- "tlink" on the SGI system do just that. So, for example,
-
- tlink source_directory destination_directory
-
- creates an image of the source_directory in destination_directory.
- Any files in destination_directory only contain a _link_ to the original
- file in source_directory. Unfortunately, some of the files didn't
- link properly and, in fact, did not appear in destination_directory
- even though they are in source_directory.
-
- So, I wish to just tlink, one file at a time (instead of 1 directory
- at a time), each missing file whose image was not successfull copied
- to destination_directory when I tlinked at the directory-wide level.
- But I'm not sure how to tlink on a file by file basis. How do you do it?
-
- Please e-mail. I will again post a summary.
-
- -------------------------------------------------------------------------------
- Seikatsu no imi wa nan desu ka. \| |` | Don't buy from Toyota;
- Shitte itara oshiete kuremasen ka. | -+- | especially, don't buy
- /| / \ | from Capitol Toyota in
- Copyright 1992. | San Jose, California.
- -------------------------------------------------------------------------------
-