-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 13 July 2002 03:12 am, loophole wrote:
> any ideas of how to generate a list of GUI based
> applications (and their purpost) for Red Linux 7.2
> rpms? Or are there any list of GUI based apps for
> that version.
>
> 'm not too good in manipulation bash scripts. :(
> tried doing "rpm -qpi /mnt/cdrom/RedHat/RPMS/*.rpm |
> grep GUI > list.txt" but the output sucks :D
>
> thanks.
How about something like this?
[mfratoni@paradox mfratoni]$ cat rpmsearch.sh
#! /bin/sh
for file in /mnt/cdrom/RedHat/RPMS/*.rpm ; do
DATA=`rpm -qp $file --qf "\[%{NAME}\] -- %{DESCRIPTION}"`
if `echo $DATA | grep -qi gui` ; then
echo $DATA
echo
fi
done
echo "Search complete."
echo
exit
Run the script as ./rpmsearch.sh > outfile
Each match will look like:
[gtop] -- Gtop is a system monitor for the GNOME GUI desktop environment.
Gtop provides the same functionality as top, but with a GUI interface.
Of course, it will only help if the packages used the term 'gui' in the
description of the package.
- --
- -Michael
pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.2 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAj0wG8wACgkQn/07WoAb/SuQ7QCfbO2j5jvLnESTkD7iu8jWzxvc
EtAAnjPBwpd/kLyFm3yHv/7isKcuwwZ7
=dKrn
-----END PGP SIGNATURE-----
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list