source: gs3-installations/mars/trunk/sites/mars/collect/amc-essentia/01-PREPARE-IMPORT.sh@ 36966

Last change on this file since 36966 was 35222, checked in by davidb, 3 years ago

Added in 'find' phase to remove zero length M4A files that resulted from the download stage

  • Property svn:executable set to *
File size: 306 bytes
Line 
1#!/bin/bash
2
3if [ ! -d import ] ; then
4 echo "Creating directory: import"
5 mkdir import
6fi
7
8rsync -pav prepare/audio/* import/.
9
10echo ""
11echo "Removing zero sized files ..."
12
13find import -type f -name "*.m4a" -size 0 -exec bash -c 'f={} ; r=${f%.*} ; ls -l $r.* ; /bin/rm $r.*' \;
14
15echo "... done"
16
17
Note: See TracBrowser for help on using the repository browser.