SHARE
TWEET

Untitled

a guest Jul 18th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dir=/usr/path/tofiles
  2.     for file in $(find $dir -name *txt)
  3.     do
  4.         fbase={file%.txt}
  5.         if [ "$step" == "1" -a ! -f "${fbase}.header" ]
  6.             then
  7.                 continue
  8.         fi
  9.  
  10.     ### From here nothing in the script runs #####
  11.  
  12.         if [ -f "${fbase}merged" ]
  13.         then
  14.                 echo "$file already merged"
  15.         fi
  16.  
  17.        files="$files ${fbase}g.txt.gz"
  18.        cnt=$(($cnt + 1))
  19.        if [ "$cnt" -eq "$chunksize" ]
  20.        then
  21.            outid=$(uuidgen)
  22.            logfile=${outdir}/${outid}.cluster.log
  23.            echo "sh $(pwd)/mysecript.sh $outid $files"  
  24.        fi
  25.     done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top