So I'm trying to match a year number sequence with grep and this should be easy. I'm just a bit stumped that my simplistic regex isn't working. What I'm doing is running a tool which archives some ...
How can I use 'grep' to get lines start with '* ' in my file? I tried grep "*" myfile and grep "* " myfile but returns all the lines of my file.
When I write $ grep \$ then whatever I type on terminal, is matched and printed on terminal. How is \$ being interpreted?