LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Intro (https://www.linuxquestions.org/questions/linuxquestions-org-member-intro-24/)
-   -   Zgrep not considering Special characters (https://www.linuxquestions.org/questions/linuxquestions-org-member-intro-24/zgrep-not-considering-special-characters-4175640785/)

anweshbabu 10-20-2018 02:55 PM

Zgrep not considering Special characters
 
iam trying to zgrep the zipped file when iam using multiple strings which has special charaters it is not working
zgrep -ia -E '*"Item":"2"*|*RETAIL*|*erro142*' Applicationlog.tar.gz



zgrep is not considering the text which has special characters "Item":"2"

Do u have any solution for it

lougavulin 10-20-2018 08:15 PM

I built a Applicationlog.tar.gz on my own, just to check and on my system your command is working.
Quote:

auenu "Item":"2"
etant RETAIL antea
So, you should probably say :
- on which system are you ?
- what zgrep version do you use ?
- how do you build Applicationlog.tar.gz ?


All times are GMT -5. The time now is 06:39 PM.