glenn jackman

Ottawa, Canada

Developer at Pythian.
Big Tcl and Perl fan.
Enjoy Ruby and JavaScript too.

6h
comment shell script to get collect pixel size of image
you could also discard identity's stderr: identity "..." 2>/dev/null
6h
comment shell script to get collect pixel size of image
add shopt -s nullglob before the for loop
13h
revised shell script to get collect pixel size of image
added 475 characters in body
14h
revised shell script to get collect pixel size of image
added 1 character in body
14h
revised shell script to get collect pixel size of image
added 381 characters in body
14h
comment shell script to get collect pixel size of image
For the "largest" image, do you want to consider the perimeter or the area?
14h
answered shell script to get collect pixel size of image
14h
comment shell script to get collect pixel size of image
What error do you see?
17h
comment One password prompt for bash script including SCP and SSH
Indeed. Good point
17h
answered One password prompt for bash script including SCP and SSH
17h
revised How to split outputs of single column with awk?
added 58 characters in body
19h
answered How to split outputs of single column with awk?
19h
comment if statement in TCL
Check the operators available: if {$border in {T B L}} {...} else {...}
1d
comment How do I process new additions to logs
If you're writing a custom script, keep track of the file size of the log each time you run the script. Then, when you start the script, you can seek that far into the log file before starting to read.
1d
comment Histogram frequency count for column
You just need to keep a counter for the last field: {count[$3]++}
1d
comment sed: to merge contents of one CSV to another based on variable match
fyi, this line is wrong: $IP = $( echo $LINE | cut -d, -f1 ) -- variable asssignments in bash do not use a $ on the left-hand side, and you must not have spaces around the = -- IP=$( echo "$LINE" | cut -d, -f1 )
1d
comment sed: to merge contents of one CSV to another based on variable match
Hmm, both the join and awk commands work for me with your given data.
1d
revised sed: to merge contents of one CSV to another based on variable match
added 63 characters in body
1d
answered sed: to merge contents of one CSV to another based on variable match
1d
comment sed: to merge contents of one CSV to another based on variable match
Your desired output is not clear. Please show it.
1 2 3 4 5