Advertisement
rodrigosantosbr

[Terminal] Remove all files except file1, file2, file3

Jan 14th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.08 KB | None | 0 0
  1. find . ! -name 'file1' ! -name 'file2' ! -name 'file3' -type f -exec rm -f {} +
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement