SHARE
TWEET

Untitled

a guest Jun 25th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. cat "./directory_1/"*.txt > "directory_1.txt"
  3. cat "./directory_2/"*.txt > "directory_2.txt"
  4.      
  5. #!/bin/bash
  6. cat "./directory_1/"*.txt > "directory_1.txt";cat "./directory_2/"*.txt > "directory_2.txt"
  7.      
  8. line 2: $'r': command not found
  9. : No such file or directorydirectory2.txt
  10.      
  11. for dir in */; do
  12.     cat "$dir"/*.txt >"${dir%/}.txt"
  13. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top