Guest User

Untitled

a guest
Oct 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. directory1
  2. -> file1.txt
  3. -> file2.txt
  4. -> file3.txt
  5.  
  6. directory2
  7. -> file1.txt
  8. -> file2.txt
  9. -> file3.txt
  10.  
  11. directory3
  12. -> file1.txt
  13. -> file2.txt
  14. -> file3.txt
  15.  
  16. for file in `find $ROOTPATH -type f -name *.txt:
  17. if [[ "$file" =~ $PREFIXBSEA10 ]]; then
  18. #perform action
  19.  
  20. #recursive over `directory1`, `directory2`, `directory3`:
  21. #perform action on file 1 from directory1
  22. #perform action on file 2 from directory2
  23. #perform action on file 3 from directory3
  24. #perform action on file 2 from directory1
  25. #perform action on file 2 from directory2
  26. #perform action on file 2 from directory3
  27. etc.. for all files.
Add Comment
Please, Sign In to add comment