![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Moving files not directory. | senthil_is | Shell Programming and Scripting | 1 | 05-09-2008 02:21 AM |
| Moving specific files | Stud33 | Shell Programming and Scripting | 4 | 03-31-2007 10:50 PM |
| Moving Files | iAm4Free | Shell Programming and Scripting | 5 | 03-28-2007 05:13 AM |
| moving between vi files | aya_r | Shell Programming and Scripting | 2 | 08-23-2005 05:36 AM |
| moving files ?? | rocker40 | UNIX for Dummies Questions & Answers | 9 | 11-09-2003 08:36 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
If the files to be searched are in one directory, you can list the filesnames with:
grep -l 'I love unix' * If you want to move all to one directory, then: mv `grep -l 'I love unix' *` /u01/myotherdir or process each file one-by-one: for filename in `grep -l 'I love unix' *` do echo "Now processing $filename ..." <whatever> done |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|