4 ms·
Why wouldn't he just use `grep -f`? EDIT: and about the question in the pastebin - I guess it has to do with ${var} showing it contains spaces as opposed to `c
by d33 8y ago
Why wouldn't he just use `grep -f`?
EDIT: and about the question in the pastebin - I guess it has to do with ${var} showing it contains spaces as opposed to `cat file.txt` having newlines.
- indigodaddy 8y agoTested on a file with spaces instead of new lines and still doesn't work with the pipe thru cat file
- indigodaddy 8y agoI'll have to experiment with the -f flag. Completely forgot about this, and would likely have done the trick without having to resort to the echo variable nonsense.
- mannykannot 8y agoPeople who use 'ls | grep -f ../filelist.txt' don't see anything odd to write about. It's kind of like the anthropic principle.
- jwilk 8y agohttps://en.wikipedia.org/wiki/Anthropic_principle https://en.wikipedia.org/wiki/Anthropic_principle