3 ms·
Wildcards are still expanded inside double quotes.. Yiu have to use single quotes.
by lucd 7y ago
Wildcards are still expanded inside double quotes.. Yiu have to use single quotes.
- solarexplorer 7y ago...or a backslash.
- beamatronic 7y agoI use the backslash. I also specify -type f explicitly when I’m looking for files. find . -type f -name \*.txt Now the next article will talk about problems when there’s a space in the file names and you just piped the output into xargs :)
- chousuke 7y agoThat's not true. Variable expansion happens in double quotes, but globs stay untouched.
- waynecochran 7y agoYes but double quotes will work fine in this case -- globs won't be expanded...