2 ms·
You are: grep matches strings, not integers. grep -rl '500' works just fine.
by leblancfg 10y ago
You are: grep matches strings, not integers.
grep -rl '500'
works just fine.
- tne 10y agoThere is no concept of an integer on an argument vector. Quoting in bash just escapes IFS characters (usually whitespace) to control whether to include them in a given argument on the vector, but these arguments (as passed to exec) are always character strings (with or without quoting).
- godelski 10y agoInterestingly enough grep -rl "500" . doesn't work because it returns with the "./".