![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recursively changing permissions on files | altamaha | UNIX for Dummies Questions & Answers | 1 | 03-01-2008 05:15 AM |
| Moving multiple files and renaming them on the fly | daemongk | Shell Programming and Scripting | 1 | 06-08-2007 02:36 PM |
| moving and renaming multiple files | rocinante | Shell Programming and Scripting | 1 | 06-07-2007 09:20 PM |
| moving files across multiple servers | kymberm | UNIX for Advanced & Expert Users | 2 | 10-23-2002 01:04 PM |
| List Files Recursively | roberthawke | UNIX for Dummies Questions & Answers | 9 | 06-24-2002 07:19 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Not using FreeBSD ,
but if the following find command can display the files you want to move .find ./dir -type f -iname "*.t[argz]*[bz2]" -print then you might try this #find ./dir -type f -iname "*.t[argz]*[bz2]" -print > /tmp/file.list #tar cvf - `cat /tmp/file.list` | ( cd /target_dir;tar xvf - ) now you just have to remove the old files . |
|
|||||
|
Quote:
i am looking for.. find . ./dir -type f -iname "*.t[argz]*[bz]2" -depth -print | cpio --null -pvd ./target-directory this will do exactly what you did using tar... but still doesn't extract the files only.. my main concern in the filesystem that I am using is speed since it is a large filesystem and has many changes applied daily to the files.. using the above methods means i must go in and individually extract each file one by one.. i think due to my using linux's "xargs mv --target-directory=./" option using find all the time I may have over looked a few options that are basically simple or too obvious .. . just for clarification i understand that only the selected files are transfrered to the desired directory but they are still archived in their original directories since the all the directories are transfered too empty or not.. what I need is to transfer just the files through an extraction method to one said directory.. . thanx moxxx68 ![]() |
![]() |
| Bookmarks |
| Tags |
| cpio |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|