Created
February 4, 2021 23:16
-
-
Save stephen-hannam/c4d4f1c1d60307c624ad25a7a177451a to your computer and use it in GitHub Desktop.
delete files by grepped field from ls
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
`ls -la | grep <> | tr -s ' ' | cut -d ' ' -f9 | xargs rm` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment