Skip to content

Instantly share code, notes, and snippets.

@knice
Last active December 10, 2015 03:38
Show Gist options
  • Select an option

  • Save knice/4376212 to your computer and use it in GitHub Desktop.

Select an option

Save knice/4376212 to your computer and use it in GitHub Desktop.
Find files with a string and move to another directory.
grep -l 'STRING' * | xargs -I '{}' mv '{}' DIRECTORY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment