Brief-Wishbone9091
Member
?
It represents a single character
*
It represents zero or more characters
The difference:
say there are these files in system.
file1
file2
file3
file4
file10
You do rm -f file?
It will not delete file10, meanwhile if you do rm -f file*, it'll delete all files.
What I'm trying to understand is its other use cases that I don't yet understand but you guys know about.
It represents a single character
*
It represents zero or more characters
The difference:
say there are these files in system.
file1
file2
file3
file4
file10
You do rm -f file?
It will not delete file10, meanwhile if you do rm -f file*, it'll delete all files.
What I'm trying to understand is its other use cases that I don't yet understand but you guys know about.