Suppose you want to delete your processed data files, and only keep your raw files and processing script to save storage. The raw files end in .dat
and the processed files end in .txt
. Which of the following would remove all the processed data files, and only the processed data files?
rm ?.txt
rm *.txt
rm * .txt
rm *.*
.txt
files with one-character names*
to match everything in the current directory, so the command would try to remove all matched files and an additional file called .txt
*.*
to match all files with any extension, so this command would delete all files