Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. EXT=(.jpg .png .gif)
  2. EXT=${(j.|.)EXT} # EXT becomes '.jpg|.png|.gif'
  3. for f in *($EXT); do # should become '*(.jpg|.png|.gif)' but failed
  4. process-one-file $f
  5. done
  6.  
  7. rm -- $file
  8.  
  9. rm -- "$file"
  10.  
  11. rm -- $~file_pattern
  12.  
  13. for f (*($~EXT)) process-one-file $f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement