[arch-general] script to reformat 'pacman -Ss' output into 2 readable columns (prevents blindness)

David C. Rankin drankinatty at suddenlinkmail.com
Fri Aug 6 17:43:34 EDT 2010


On 08/06/2010 04:40 PM, David C. Rankin wrote:
> On 08/06/2010 12:33 AM, Dave Reisner wrote:
>> Hi.
>>
>> Let's see what we can do about cutting back a little on the verbosity,
>> and upping the utility...
>>
>
> Dave,
>
> Thanks. It will take me a bit to decipher it, but I'm all for cutting down on
> typing and upping the benefit received :p
>
> I have a question. I was trying to figure the script out by passing in one of my
> pacman -Ss save files as follows, but I keep getting an error:
>
> 16:36 alchemy:~/scr/arch> cat dev/font.pms | sh srchreisner.sh
> srchreisner.sh: line 20: syntax error near unexpected token `<'
> srchreisner.sh: line 20: ` IFS=$'\n' read -r -d'\0' -a blockdesc < <(fmt
> -w$WIDTH <<< "${desc[i]}")'
>
> Where in the black-magic or in my operation of it lies the problem?
>

Never mind, calling the script with sh was the issue (duh...)

-- 
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com


More information about the arch-general mailing list