[EDI-L Mailing List Archive Home] [Message List] [Reply To This Message]

FW: UNIX question

From: "Gonzalez,Eva,GLENDALE,Information Technology" <eva.gonzalez@...>
Date: Thu Jul 24, 2003  12:35 am
Subject: FW: [EDI-L] UNIX question
Try:

find $EDI_ROOT/$working_directory/* -mtime +21 ! -path
$EDI_ROOT/$working_directory -only -type f -exec mv {}
$archive_directory \;


This syntax will move only files (! -path) found in $working_directory to
$archive_directory.
It will leave any recursive sub-directories, and their files, in
$working_directory.


-----Original Message-----
From: Burbury, Michael (GXS) [mailto: Sent: Wednesday, July 23, 2003 3:39 PM
To: ELDER, HEIKE; Subject: RE: [EDI-L] 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]



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/




 
EDI to XML Mapping for EDIFACT/X12 Convert EDIFACT/X12 Schemas to XML Schema Legacy Data Conversion Tools Access Relational Data as XML Visual XSLT and XQuery Mapping Tools Simplify EDI Data Integration with Stylus Studio XML Enterprise Suite - Free Download!
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.