[Gllug] problems with grep
Mike Brodbelt
mike at coruscant.demon.co.uk
Wed Nov 23 09:11:35 UTC 2005
On Wed, 2005-11-23 at 09:01 +0000, charles wrote:
> Can anyone tell me why the following command:
>
> grep e$ words2.txt
>
>
> does not list all lines in 'words2.txt' that end with the letter 'e' ?
The shell prevents the $ from reaching grep.
grep e\$ words2.txt
should do what you want.
Mike
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list