Guest User

Untitled

a guest
Jan 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. for file in $(find ./ -maxdepth 1 -name '*.csv' -type f )
  4. do
  5. touch tmp
  6. for line in $(cat $file)
  7. do
  8. echo -e $file;$line >>tmp
  9. done
  10. mv -f tmp $file
  11. done
Add Comment
Please, Sign In to add comment