Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. locate something | xargs -I {} bash -c "if [ -d "{}" ]; then echo {}; fi"
  2.  
  3. XARGS(1) General Commands Manual XARGS(1)
  4.  
  5. NAME
  6. xargs - build and execute command lines from standard input
  7.  
  8. SYNOPSIS
  9. xargs [-0prtx] [-E eof-str] [-e[eof-str]] [--eof[=eof-str]] [--null]
  10. [-d delimiter] [--delimiter delimiter] [-I replace-str] [-i[replace-
  11. str]] [--replace[=replace-str]] [-l[max-lines]] [-L max-lines]
  12. [--max-lines[=max-lines]] [-n max-args] [--max-args=max-args] [-s max-
  13. chars] [--max-chars=max-chars] [-P max-procs] [--max-procs=max-procs]
  14. [--interactive] [--verbose] [--exit] [--no-run-if-empty]
  15. [--arg-file=file] [--show-limits] [--version] [--help] [command
  16. [initial-arguments]]
  17.  
  18. DESCRIPTION
  19. This manual page documents the GNU version of xargs...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement