Skip to content

Instantly share code, notes, and snippets.

@zhanghanduo
Created July 5, 2018 07:20
Show Gist options
  • Select an option

  • Save zhanghanduo/f4d15922c7a2e96ececfd20386e656b8 to your computer and use it in GitHub Desktop.

Select an option

Save zhanghanduo/f4d15922c7a2e96ececfd20386e656b8 to your computer and use it in GitHub Desktop.
find all txt files #linux
#find all .txt files under current directory
find . -name "*.txt" | xargs rm
#copy all .txt files under current directory to another folder
@zhanghanduo
Copy link
Author

I suggest using fd instead of naive "find" command.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment