1,818 reputation
58
bio website
location Ottawa, Canada
age
visits member for 4 years, 9 months
seen 13 hours ago

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


Oct
9
answered While loop does not return control
Oct
9
comment While loop does not return control
and for more fun debugging output, ssh -v
Oct
8
revised Converting string into CLI instruction
added 54 characters in body
Oct
8
answered Converting string into CLI instruction
Oct
2
comment grep behaving differently on Fedora vs Ubuntu
How about ls *-ref.alleles ?
Sep
27
comment Cron bash script skips second do/done set
Move set -x above the for loop. I'd suspect the file is empty.
Sep
15
answered how can i redirect run program command on different server
Sep
5
comment Cron not launching python script
is ~ a "sh" feature?
Jul
18
comment How to print regex match
with a string like (a) (b) (c), the basic regex (.*) would mach the whole string. with ([^)]\+), you are matching an open parenthesis and a close parenthesis, and in between you have one or more character that are not a close parentheses. That would match (a) in the string. This is a technique to make your regex less "greedy".
Jul
17
answered How to print regex match
Jul
17
comment How to print regex match
what is the output you wish to see?
Jul
6
comment Shell script won't run ruby script file
It looks like your scripts may have CR-NL line endings. Remove the carriage return: use dos2unix or sed 's/\r$//'
Jun
23
revised How to keep script from swallowing all of stdin?
added 52 characters in body
Jun
23
answered How to keep script from swallowing all of stdin?
Jun
14
comment How to split the output into different files?
For each line, set a variable f with the value of the first field concatenated with the string ".txt" (the awk concatenation "operator" is to put expressions side-by-side). Then print the file to the file named in the variable f.
Jun
13
revised How to split the output into different files?
give a value to the variable names
Jun
13
comment How to split the output into different files?
tail -n+1? That a pretty obscure way to say cat.
Jun
13
comment How to split the output into different files?
My edit is awaiting review. However, and the OP will need to provide an opinion, if your code sees a line beginning with "qux", that line will be added to "bar.txt" -- I suspect the OP would prefer "qux.txt"
Jun
13
suggested suggested edit on How to split the output into different files?
Jun
13
comment How to split the output into different files?
well, fix it and I'll remove my downvote