Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. target[0]='*~'
  4. target[1]='*.swp'
  5. target[2]='.DS_Store'
  6. target[3]='*.log'
  7. target[4]='*.out'
  8. target[5]='*.aux'
  9. target[5]='*.synctex.gz'
  10.  
  11. limit=`expr ${#target[@]} - 1`
  12.  
  13. for i in $(seq 0 $limit);
  14. do
  15. echo -e "Cleaning [${i}]: ${target[${i}]} \n"
  16. echo -e "\t" && find . -name "${target[i]}" -exec rm -v {} \;
  17. # find . -name "${target[i]}"
  18. echo -e "\n"
  19. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement