Moving files

From: Jim <jsw@wadell.org>
Date: Tue Feb 22 2005 - 18:09:16 AKST

One solution woud be
find /home/scott/wget/host.domain.tld -name '*rar' -exec mv {} /home/junk \;
this will move all the *.rar files to /home/junk

Jim
aklug@aklug.org wrote:

>aklug Digest Mon, 21 Feb 2005 Volume: 04 Issue: 035
>
>In This Issue:
> Moving files help
>
>----------------------------------------------------------------------
>
>Date: Mon, 21 Feb 2005 22:52:39 -0900
>From: Scott Johnson <scott.a.johnson@gmail.com>
>Subject: Moving files help
>
>I have a bunch of files in different directories...
>
>/home/scott/wget/host.domain.tld/0/0/1/file1.rar
>/home/scott/wget/host.domain.tld/1/0/1/file2.rar
>/home/scott/wget/host.domain.tld/C/9/1/file3.rar
>/home/scott/wget/host.domain.tld/D/A/1/file4.rar
>/home/scott/wget/host.domain.tld/2/B/1/file5.rar
>/home/scott/wget/host.domain.tld/A/A/1/file6.rar
>/home/scott/wget/host.domain.tld/F/3/1/file7.rar
>/home/scott/wget/host.domain.tld/5/E/1/file8.rar
>
>with no pattern to the directory structure after the host.domain.tld
>directory. What I need to do is move all files from these various
>directories into a single directory.
>
>How can I move these files (recursively)?
>
>Thanks.
>
>
>

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue Feb 22 18:09:19 2005

This archive was generated by hypermail 2.1.8 : Tue Feb 22 2005 - 18:09:19 AKST