Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dir=/usr/path/tofiles
- for file in $(find $dir -name *txt)
- do
- fbase={file%.txt}
- if [ "$step" == "1" -a ! -f "${fbase}.header" ]
- then
- continue
- fi
- ### From here nothing in the script runs #####
- if [ -f "${fbase}merged" ]
- then
- echo "$file already merged"
- fi
- files="$files ${fbase}g.txt.gz"
- cnt=$(($cnt + 1))
- if [ "$cnt" -eq "$chunksize" ]
- then
- outid=$(uuidgen)
- logfile=${outdir}/${outid}.cluster.log
- echo "sh $(pwd)/mysecript.sh $outid $files"
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement