scripted mv question
"Lobb, Janos" <[email protected]> Thu, 26 Apr 2012 21:04:19 +0000
| Newsgroups | gmane.comp.macosx.admin |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have two env variables: SRCDIR=/Volumes/Data/PROJECTS/Sysmon/sysmsa BKPDIR=/Volumes/Data/PROJECTS/Sysmon/sysmon_bkp I find a file this way: bml0041:~ janos$ find "$SRCDIR" -type f |grep 2 |sort -r |tail -1 /Volumes/Data/PROJECTS/Sysmon/sysmsa/2009_08_10_13.log I would like to move the found file into the $BKPDIR Any good hint how to do it ? Thanks ahead, János