how to search for a string in all filepro menus - REVISED
Chris Rendall
crendall at teamind.com
Wed Aug 14 15:26:05 PDT 2019
Below is a script I wrote to search the menus for the value specified and writes the matching records to text file in the logged in users home directory.
if [ $# -eq 0 ]
then
echo "Usage: fpmenu search parameter"
echo ""
exit 1
fi
if [ -f /home/$LOGNAME/menu.report ]
then
rm /home/$LOGNAME/menu.report
fi
for filename in `ls /u/menus`
do
echo $filename
grep -ls $1 /u/menus/$filename >> /home/$LOGNAME/menu.report
done
chmod a+r /home/$LOGNAME/menu.report
less /home/$LOGNAME/menu.report
-----Original Message-----
From: oldtony via Filepro-list <filepro-list at lists.celestial.com>
Sent: Wednesday, August 14, 2019 5:22 PM
To: filepro-list at lists.celestial.com
Subject: how to search for a string in all filepro menus - REVISED
hi experts - i need to search for a string in all filepro menus in Linux - could i have a suggestion how to do that - thanks - Old Tony
--
tony at ynotsoftware.com
Tony Freehauf (Old Tony)
YNOT Software & PC Support
815.467.2179
YNOT sounds like "Why Not."
YNOT let us help you.
_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
Subscribe/Unsubscribe/Subscription Changes http://mailman.celestial.com/mailman/listinfo/filepro-list
More information about the Filepro-list
mailing list