Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement