ASKER
Both those command should work...not working.
ASKER
zcat xyz_?.log.20181121.gz | grep MobileDevice | grep USER123 etc....
zgrep -h MobileData xyz_?.log.20181121.gz
ASKER
-h, --no-filename
Suppress the prefixing of file names on output. This is the
default when there is only one file (or only standard input) to
search.
If no file is specified, then theSee: https://linux.die.net/man/1/zgrep
standard input is decompressed if necessary and fed to grep. Otherwise
the given files are uncompressed if necessary and fed to grep.
ASKER
Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.
TRUSTED BY
Did you verify parts of the commands...
Open in new window
btw why not compare $1 == "2018-Nov-21" ?
or even: use zgrep "^2018-Nov-21 " in stead of awk.