![]() |
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 |
| Moving files not directory. | senthil_is | Shell Programming and Scripting | 1 | 05-09-2008 01:21 AM |
| Moving specific files | Stud33 | Shell Programming and Scripting | 4 | 03-31-2007 09:50 PM |
| moving between vi files | aya_r | Shell Programming and Scripting | 2 | 08-23-2005 04:36 AM |
| moving files ?? | rocker40 | UNIX for Dummies Questions & Answers | 9 | 11-09-2003 08:36 PM |
| moving only files... | sskb | UNIX for Dummies Questions & Answers | 12 | 11-19-2001 03:28 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Moving Files
Hi There,
I am trying to move files, the file is present in this location: /iAm4Free/test/generate/txt/information.txt I need to move it to: /iAm4Free/test1/generate/txt/information.txt The only difference is the "test" is replaced with "test1". But the constraint is. The parent location the file exists in the same path specified but in the second location only /iAm4Free/test1/ exists but the remaining part "generate/txt/information.txt" dosen't exist. How can I create those directories automatically and move. I know that mkdir -p creates directories, but is there something shorter in the mv command which does this automatically for you or any other simple way... any help i'll appreciate... regards, iAm4Free |
|
||||
|
Quote:
But I didn't quite understand what you have written... it looks Fundoo to me Thanks.. |
|
||||
|
Quote:
cpio Code:
cd /iAm4Free/test find . | cpio -pd ../test1 |
![]() |
| Bookmarks |
| Tags |
| cpio |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|