An XARGS question

Alexander Dalloz ad+lists at uni-x.org
Tue Jul 18 21:31:00 UTC 2006


Bill Rugolsky Jr. schrieb:

>Others have directed you toward "xargs -i", which is correct,
>but in this particular example, you can do something simpler,
>
>	lastb -ai |fgrep "Jul 18" |awk '{print $10 }'|sort|uniq \
>	|fgrep -x -f - blacklist
>
>
>	Bill Rugolsky
>
>  
>
Even shorter:

lastb -ai | awk '/Jul 18/ {print $10}' | sort -u | fgrep -x -f - blacklist

Alexander




More information about the fedora-list mailing list