Something New Continuing Education through Self Motivation

16Nov/090

xargs and find

xargs is a command on Unix and most Unix-like operating systems. It is useful when one wants to pass a large number of arguments to a command. Until Linux kernel 2.6.23, arbitrarily long lists of parameters could not be passed to a command [1], so xargs will break the list of arguments into sublists small enough to be acceptable.

Additional Reading:

http://en.wikipedia.org/wiki/Xargs

http://www.softpanorama.org/Tools/xargs.shtml

http://www.linuxplanet.com/linuxplanet/tutorials/6522/1/

Filed under: linux, scripts No Comments
2Nov/090

Bash Numeric Comparison

Do not use > or < when comparing numbers in BASH. It doesn't work. It tries to redirect output instead of performing the comparison. Use -lt or -gt instead.

Additional Reading:

http://fvue.nl/wiki/Bash:_Numeric_comparison

http://tldp.org/LDP/abs/html/

Filed under: linux, scripts No Comments
   

tags

categories

Meta