Package: wireless-tools
Version: 30~pre8-1
Severity: wishlist
File: /sbin/iwlist

Are you sure you need to put all those newlines into the output?

# man iwlist|col -b|perl -anwe '/iwlist \[interface\]/||next; print 
"---$F[-1]---------\n"; system("iwlist",$F[-1])' 2>&1|wc
    186     490    4123
# man iwlist|col -b|perl -anwe '/iwlist \[interface\]/||next; print 
"---$F[-1]---------\n"; system("iwlist",$F[-1])' 2>&1|sed /^$/d|wc
    134     490    4071

On can save many lines and the output looks much nicer without them.

Also is using stderr instead of stdin really called for?



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to