Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- directories="/your/path/dir1 /your/path/dir2 /your/path/dir3"
- for d in $directories
- do
- cat $(find $d -name "*.txt") > $(echo $d | sed 's////g').txt
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement