Re: An XARGS question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux