On Thu 05 Aug 2010 22:51 -0500, David C. Rankin wrote:
Guys,
You got a script for the gals too? :D
I developed a script to help me read the output of pacman -Ss in 2 nicely formatted columns. The output of 'pacman -Ss srchterm' drives me nuts trying to read down the package names and descriptions with all the tab indented and wrapped text -- so I fixed it. Download the script here:
http://www.3111skyline.com/dl/Archlinux/scripts/srch2list.sh
or with the '-d' option for semi-doublespace:
This should definitely be the default. Otherwise I may go walleyed.
The script needs 1 input. That is a filename 'srchfile' that contains the output from 'pacman -Ss srchterm > srchfile' There are 2 options, '-h or --help' gives a brief description and '-d' which causes the output to be essentially double-spaced. (each package description remains single spaced if it requires multiple lines, but a blank line is included between package descriptions) On the todo list is having the script take the input from stdin and eliminate the srchfile.
Cheers.