Skip to content

Instantly share code, notes, and snippets.

@rodoherty1
Created May 2, 2017 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodoherty1/c770be81f3307bcd406f69e4e689965d to your computer and use it in GitHub Desktop.
Save rodoherty1/c770be81f3307bcd406f69e4e689965d to your computer and use it in GitHub Desktop.
Simple bash loop and xargs example
#!/bin/sh
find . -name "whatever*" | xargs -0 -I {} ls -l {}
for i in `seq 1 10`; do mv "SomeDoc$i" "SomeName$i.txt"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment