Archive for May, 2007
Monthly Archive
Thursday, May 24th, 2007
Linux Tip #7: For loop on a range of numbers
Little know seq (sequence) utility is a great way to loop on a range of numbers in Linux. It came in very handy today and will hopefully stick in my brain in the future.
for i in `seq 1 10`
do
..
done
No Comments » - Posted in Linux, Programming by dkaz
Wednesday, May 16th, 2007
“Different” use of the ternary
Amusing use of the ternary from our codebase..
log.debug( ( randomize ? “R” : “Not r” ) + “andomizing content” );
:)
