Skip to content

Instantly share code, notes, and snippets.

@andrewle
Created October 16, 2009 04:02
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 andrewle/211543 to your computer and use it in GitHub Desktop.
Save andrewle/211543 to your computer and use it in GitHub Desktop.
# Add xml extensions to all files in the directory
# '-I %' switch specifies '%' as a replacement character all instances of '%'
# will be replaced with the argument
ls -1 | xargs -I % mv % %.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment