Created
July 5, 2018 07:20
-
-
Save zhanghanduo/f4d15922c7a2e96ececfd20386e656b8 to your computer and use it in GitHub Desktop.
find all txt files #linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #find all .txt files under current directory | |
| find . -name "*.txt" | xargs rm | |
| #copy all .txt files under current directory to another folder |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suggest using fd instead of naive "find" command.