Advertisement
Guest User

first loop

a guest
Jan 18th, 2020
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. ls -1 | while read d
  2. do
  3.     test -d "$d" || continue
  4.     echo $d
  5.     (cd $d ;
  6.         ls -v \*.avi | while read each; do echo "file '$each'" >> mylist.txt; do$
  7. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement