glenn jackman

Ottawa, Canada

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

18h
comment How to get fish-style formatting with less [edit] [edit]
I'm not able to check just no. I suspect you'd need ls --color=always and then an option for less to interpret the color sequences
18h
answered roundign numbers perl
1d
revised Replace string in one file with contents of another file
separate the commands
1d
comment Mysterious: Elif and Counter Increment Bug
What is $indx? It looks to me like you only have one item to iterate over in the for loop, so naturally you don't get into the elif branch.
2d
comment How to sort file by character occurrences per line?
This technique is known as a Schwartzian transform
2d
comment What's the fatest way to calculate in command line?
This is bash shell
Jul
30
comment bash let variable default to user input
I'd recommend something in between: [[ -z $FILE ]] && read -p "..." FILE
Jul
30
comment ruby script - redirect output from one script to another script
Hey @max, I've been hiding in a corner licking my wounds ;) Sincerely, can you direct me to some place so I can learn about Ruby community standards?
Jul
30
revised bash expanding to same value instead of line by line value in sed command
added 415 characters in body
Jul
30
answered bash expanding to same value instead of line by line value in sed command
Jul
30
comment Help with a AWK function
So, just remove the two print "----" lines
Jul
30
answered Help with a AWK function
Jul
30
comment Help with a AWK function
Please show your input file. Your awk command uses a[NR]=$2, but I only see one column
Jul
30
revised Help with a AWK function
formatting
Jul
30
comment Bash redirect stdout to function
& will send the whole pipeline into the background
Jul
30
answered Bash redirect stdout to function
Jul
30
revised bash let variable default to user input
added 120 characters in body
Jul
30
answered bash let variable default to user input
Jul
30
comment Drawing a histogram from a bash command output
Are you counting the "Scores for this hit" or the "Scores for this scan" or both?
Jul
30
comment Use of TCL script with SQL
You'll want to make sure you're using Tcl version 8.6 so you get tdbc::mysql
1 2 3 4 5