Guest User

Untitled

a guest
Jun 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. $ find . -name '*.txt' -exec rm -f {} ;
  2.  
  3. $ find . -name '*.txt' -print | xargs rm -f
  4.  
  5. $ find . -name '*.txt' -print0 | xargs -0 command
  6.  
  7. for file in *.txt ; do
  8. [ -f "$file" ] || continue
  9. # 実行したいコマンド
  10. echo "$file"
  11. done
Add Comment
Please, Sign In to add comment