Craig Millar schrieb:
On 27/10/05 18:19 +0200, Sören Wengerowsky wrote:
[EMAIL PROTECTED]:~> for i in update install reinstall upgrade remove check fix download search query info stats channel priority mirror flag; do smart $i --help ; done |
grep -i source
[EMAIL PROTECTED]:~>
Great! I was thinking of something like this, didn't get round to it in the
end.
I found it here:
http://www.linux-club.de/viewtopic.php?t=44887
(the last post). If you've problems with the german there, i say
you that he says it can be converted to a real man-page using
txt2man http://mvertes.free.fr/
#!/bin/bash
if [ -e smart-cmd.txt ]; then
rm -f smart-cmd.txt
fi
smart --help >> smart-cmd.txt
echo "----------------" >> smart-cmd.txt
echo "----------------" >> smart-cmd.txt
for i in update install reinstall upgrade remove check fix download \
search query info stats \
channel priority mirror flag; do
smart $i --help >> smart-cmd.txt
echo "----------------" >> smart-cmd.txt
echo "----------------" >> smart-cmd.txt
done
very simple, but useful ;-)
cheers,
Soeren
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]