I’m working on a nice long regular expression (for fun, yeah I know…) and I’d like to write it in a file so I can keep a better record of it. Can I call grep like this:
grep regex.txt fileToSearch.txt
I’ve tried it and it doesn’t work. Are there any flags I have to use or is this approach not possible?
from
man grep:Example: