Quote:
Originally Posted by reborg
IFS='[ :<tab>]'
Set the internal field seperator to space, : or tab
<tab> is used here to denote an actual tab character.
Ok, lets break down a line in your file
0:30 54545 According to what I set IFS to this has 3 fields, I have decided to call them a,b and pid { a=0, b=30, pid=54545 }
Quote:
[[ $a$b -gt 30 ]] && kill $pid
is the concatenation of $a and $b > 30 ? if so kill the process identified by pid
in this example
[[ 030 -gt 30 ]] && kill $pid
evaluates to false so the process does not get killed.
Take the input from the file bbb, this the same as your "cat bbb | while" except without the
UUOC.