Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. directories="/your/path/dir1 /your/path/dir2 /your/path/dir3"
  4.  
  5. for d in $directories
  6. do
  7. cat $(find $d -name "*.txt") > $(echo $d | sed 's////g').txt
  8. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement