home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!spool.mu.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!csn!cherokee!uswmrg!engineer.mrg.uswest.com!chris
- From: chris@engineer.mrg.uswest.com (Chris Fedde)
- Subject: Re: need a bit of help in
- Message-ID: <1993Jan2.014804.7915@uswmrg.mrg.uswest.com.mrg.uswest.com>
- Organization: USWEST Marketing Resources
- NntpPostingHost: engineer.mrg.uswest.com
- References: <1993Jan1.195022.23031@mnemosyne.cs.du.edu>
- Date: 02 Jan 93 06:48:04 GMT
- Lines: 33
-
- In article <1993Jan1.195022.23031@mnemosyne.cs.du.edu> rduta@nyx.cs.du.edu (Radu) writes:
- >
- >Ok, tow things:
- >1) I want a method of copying whole directories. I'm used to the mac where
- > you can just drag folders form one dir to another and it moves it or
- > copies it. I want something similar for unix. The thing is that I
- > Haven't the slightest idea how to start.
- >
-
- there are lots of ways to do this. Normaly I use
- find source_dir print | cpio pcvd
- there is a way to do this using tar too.
- (cd src; tar cf . )| (cd dst; tar xvf )
- Does someone else have easier ways?
-
- >2) I was wandering what is the easiest way to do a recursive grep, where
- > it searches all the files in all dirs. I was thinking something along
- > the lines of "grep R string *" but the "R" flag is not an option.
- >
- >any ideas?
- >
- >
-
- I used the below command to locate a reference in my Mail folder
- find Mail exec grep string {} \; | more
- Be carefull though. this will also grep ALL files, text and non text.
- the command won't break but the output can be confusing.
-
- good luck
- chris
-
-
- Chris Fedde, USWEST MRG, chris@mrg.uswest.com, voice +13037842823
-