# rpm -qa | grep gzip
gzip-1.12-3.ppc
# rpm -ql gzip | grep zgrep
/opt/freeware/bin/zgrep
/opt/freeware/bin/zgrep_32
/opt/freeware/bin/zgrep_64
/opt/freeware/man/man1/zgrep.1
# echo $PATH
/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java8_64/jre/bin:/usr/java8_64/bin:/usr/local/bin
------------------------------
Vivek M
------------------------------
Original Message:
Sent: Wed July 30, 2025 02:36 AM
From: Ayappan P
Subject: Need similar tool of zgrep in aix server
Share the below o/p's.,
rpm -qa | grep gzip
rpm -ql gzip | grep zgrep
echo $PATH
------------------------------
Ayappan P
Original Message:
Sent: Wed July 30, 2025 02:29 AM
From: Vivek M
Subject: Need similar tool of zgrep in aix server
By using gzip -dc [FILE] | grep -i [STRING] This command is useful to grep the word from all compressed files only, but my query is different. I want to grep and display the list of file names that contain the word from all compressed files. I tried to used zgrep but i am getting this error
# zgrep 'fnsrr' *.gz
ksh: zgrep: not found.
------------------------------
Vivek M
Original Message:
Sent: Wed July 30, 2025 02:00 AM
From: Ayappan P
Subject: Need similar tool of zgrep in aix server
Can you explain more on why zgrep from gzip rpm is not working ? What is the error/problem you are facing ?
------------------------------
Ayappan P
Original Message:
Sent: Wed July 30, 2025 01:58 AM
From: Vivek M
Subject: Need similar tool of zgrep in aix server
Hi Ayappan,
I have already installed the gzip package but no use , nothing is working
------------------------------
Vivek M
Original Message:
Sent: Tue July 29, 2025 08:59 AM
From: Ayappan P
Subject: Need similar tool of zgrep in aix server
You can install gzip rpm from AIX Toolbox and get the zgrep tool.
------------------------------
Ayappan P
Original Message:
Sent: Tue July 29, 2025 08:49 AM
From: Vivek M
Subject: Need similar tool of zgrep in aix server
On many systems, there is a tool called zgrep
which is used to grep content from compressed files. Is there any similar tool available on AIX? My purpose is to grep a particular word from multiple compressed files and display the filenames that contain that word on an AIX server. Could you suggest the best RPM package or another command to solve this issue?
------------------------------
Vivek M
------------------------------
#AIXOpenSource