How do I ignore special characters when using grep? I am trying to identify files that contain a certain pattern, so I figure grep is the way to go. The issue is that sometimes the pattern has special characters in the middle, and I can’t figure out how to account for that.For example, if the pattern is “example” I also need it to return things like “ex_ample” or “e-x-a_mple”.My only idea is to just cat the files and use sed to remove all the special characters before grepping. Is there a better way to be doing this?

http://ift.tt/2uF31ZZ
Comments
Post a Comment
Comment here