I am trying to grep lines where the first character is an A, B, or C.
I am trying this:
grep -i "^[a-c]*" data.txt
I want it to only care about the very first character, the rest of the line I don't care about.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community