15,270 reputation
1133
bio website
location Ottawa, Canada
age
visits member for 3 years, 7 months
seen 3 hours ago

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


2h
comment Shell script throws a not found error when run from a sh file. But if entered manually the commands work
No, the code is valid bash, just not valid sh.
16h
answered Bash to Fish Conversion: Display custom message when CD'ing into a specific directory
21h
comment Merging two tables including multiple ocurrence of column identifiers
+1. A little terser: awk 'NR==FNR {a[$1]=$0; next} {$1=a[$1]} 1' file1 file2
23h
revised Use SED or AWK to move rows to columns
added 301 characters in body
23h
comment Use SED or AWK to move rows to columns
@Jidder, paste -d, - - - - - - - < file
1d
answered Use SED or AWK to move rows to columns
Sep
12
answered Pass two (piped) shell commands as a parameter to a shell function
Sep
12
comment How come sed is so fast?
You can read the source for GNU sed: ftp.gnu.org/gnu/sed (I understand that being on OSX you're not using GNU sed)
Sep
12
comment How to assign space-containing values to variables in bash using eval
Nice hack with %q. I always feed dirty for receiving rep for "don't do this" answers.
Sep
11
answered How to assign space-containing values to variables in bash using eval
Sep
11
comment how to concatenate a file with multiple header into one
If there should not be the blank line after the header, remove ; print "" from the if (c++ ... line. If that's not what you mean, then I don't understand your comment.
Sep
10
comment bash: /etc/bash.bashrc: Permission denied whenever I open a terminal
What is the contents of your /etc/bash.bashrc.
Sep
10
comment how to concatenate a file with multiple header into one
copy the command and paste into a shell prompt.
Sep
10
revised how to concatenate a file with multiple header into one
deleted 124 characters in body
Sep
10
answered how to concatenate a file with multiple header into one
Sep
9
comment Use awk to find first occurrence
"The script is now cleaning up the pid's" -- the pid's what? I'm on the edge of my seat.
Sep
9
answered Use awk to find first occurrence
Sep
8
revised How to Print certain Fields if a condition is met
added 106 characters in body
Sep
8
answered How to Print certain Fields if a condition is met
Sep
8
comment Can I reference a command before '&&' after '&&'
Holy cow people. Stop upvoting my answer. Consider the mental effort required to a) retype "vagrant", or b) first remember "!#:0" and then type it.