Skip to content

Instantly share code, notes, and snippets.

@oilbeater
Created October 31, 2014 06:17
Show Gist options
  • Save oilbeater/80af9e7eb4ff6c54d8d0 to your computer and use it in GitHub Desktop.
Save oilbeater/80af9e7eb4ff6c54d8d0 to your computer and use it in GitHub Desktop.
Common used shells
#Batch move
ls | head -n 50 | xargs -i mv {} mvdir/
#Batch files replace
sed -i "s/older/newser/g" `grep -li older *`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment