Delete all files in your current directory except the files you identify.
$ allbut file-to-protect
- Given a current path with 4 files: testfile1, testfile2, testfile3, testfile4
- Run allbut testfile1 to remove all of the files and leave only testfile1 in current path
- Also works with multiple files allbut testfile1 testfile2
- Normal operation just prints the work to do, the -f flag is required to actually delete