|
[EDI-L Mailing List Archive Home]
[Message List]
[Reply To This Message]
RE: UNIX question

Hi,
Use "find $EDI_ROOT/<working directory> +atime 21 -exec mv {} <archive
directory>\;"
Cheers..
Michael Burbury
GXS Australia
-----Original Message-----
From: ELDER, HEIKE [mailto:
Sent: Thursday, July 24, 2003 2:10 AM
To:
Subject: [EDI-L] UNIX question
Hi, I'm trying to automate our backing up of EDI data and we've run across
something we weren't expecting! The command:
find $EDI_ROOT/<working directory> -mtime -21 -exec mv {} <archive
directory> \;
actually takes the entire working directory and text files and moves them to
the archive directory, so the final output in archive is <archive
dir>/<archive dir>/data files.
Does anyone know of a one-line command that will exclude the directories but
take all text files and move them to the appropriate directory in archive?
Our only other recourse is to do a grep and some kind of loop to move the
text files to their respective directory in archive.
Any help would be much appreciated, thank you!
Heike Elder
EDI Analyst/Programmer
The Valspar Corporation
phone: 612/375-7374
To unsubscribe from this group, send an email to:
Message Identifiers: <SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>,
<OFF-TOPIC>
Access the list online at: http://groups.yahoo.com/group/EDI-L
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
[Non-text portions of this message have been removed]
|
 |
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|