![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting unusual error - moving files to another directory | aismann | Shell Programming and Scripting | 4 | 12-21-2007 03:29 AM |
| Mutiple For loops - moving files to another directory | tekster757 | Shell Programming and Scripting | 9 | 06-21-2007 08:42 AM |
| How to Compress files before moving them in a directory | godalle | Shell Programming and Scripting | 3 | 11-10-2005 11:59 AM |
| moving directory | bb00y | High Level Programming | 1 | 12-02-2002 11:39 AM |
| moving files from a unix directory to a windows directory | gleads | UNIX for Dummies Questions & Answers | 2 | 08-29-2002 08:42 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Moving files not directory.
Hi,
I want to move only files not subdirectories. I issued the below command, but subdirectories are also gets moved. mv /ucrrpd/input/upload/ /ucsspd/common/history/ In the above case, all subdirectories in /ucrrpd/input/upload/ also gets moved to /ucsspd/common/history/ I want to move only files in /ucrrpd/input/upload/ Example : /ucrrpd/input/upload/RRR123.dat /ucrrpd/input/upload/RRR124.dat /ucrrpd/input/upload/RRR125.dat Only RRR files has to be moved not sub directories. Can anyone help on this. This has to be done in a single line script using mv ? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|