Hi all,

There is a file with a collection of links from global sites. While trying to sort the links into categories I'm catching the wrong things.

e.g. find links from India:

PATTERN="^.*http:\/\/.*\.in.*$"
grep $PATTERN < file.of.links >links.in

Even though the "." in front of "in" is escaped with "\" PATTERN is catching any text containing "in". This is obviously not what is intended.

Any one out there point me to the error of my ways?

TIA,
Mike Wright
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to