Monday, 12 August 2013

Unix syntax for the grep command for only an endind character

Unix syntax for the grep command for only an endind character

For the file james, trying to run this command:
cat james | grep ["."]
I get only the lines that contains a dot but I want only the
lines that only end with a dot.
I didn't find a related solution for this.

No comments:

Post a Comment