bash rm everything except code example Example: bash delete everything except $ rm -v !("filename1"|"filename2")