SHARE
TWEET

first loop

a guest Jan 18th, 2020 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
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
Top