11,781 reputation
928
bio website
location Ottawa, Canada
age
visits member for 3 years, 2 months
seen yesterday

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


1d
comment Combined `mkdir` and `cd`?
quotes around "$1" will protect the argument if it has spaces.
1d
comment Best way to determine piped command to shell script?
and you want the "originating command" to be part of the log? No, print.sh cannot know that innately, it only knows it has stdin connected from somewhere. You'll have to go hunting for it. Or pass the command and the print.sh script will invoke it: print.sh 'tree /some/dir'
1d
comment Best way to determine piped command to shell script?
For what purpose? Why does print.sh need to know what program is sending data? What will you do differently in this case: print.sh < somefile?
Apr
16
comment How to track SFTP's error
which sftp command is producing the error?
Apr
15
answered How to track SFTP's error
Apr
15
answered Is it possible to generate a separate file list when creating a tarball?
Apr
14
comment How to get exit code of a parallel process launched by xargs?
duplicate question: stackoverflow.com/q/23055708/7552
Apr
14
comment how to write `fuser -k -n tcp 80` into a bash script?
"the script can not run": what happens exactly?
Apr
13
comment how to write `fuser -k -n tcp 80` into a bash script?
What happens when you try it?
Apr
9
comment sed remove characters from new line
@1_CR, my thought too, but I had s/.$/&|/
Apr
8
answered copy files from one path to another path in linux
Apr
6
comment command condition sometimes integer sometimes string
better use quotes: [ "$(cat file)" = 1 ] -- if the file is empty, you'll get a syntax error otherwise
Apr
4
comment Can continually assigning a variable in a shell script cause a memory leak?
@mikeserv, don't need echo even: date "+Time: %c" >> file
Apr
3
comment Merge 2 files based on all values of the first column of the first file
The NR==FNR condition means the file record number == the cumulative record number, and this is only true for the first file. So I'm reading the values from file2, but not printing any of them. You only care about the keys from file1\
Apr
3
comment Merge 2 files based on all values of the first column of the first file
The OP will have to tell us.
Apr
3
answered Merge 2 files based on all values of the first column of the first file
Apr
3
comment Merge 2 files based on all values of the first column of the first file
"game" does not appear in the merged file?
Apr
2
comment mailx and HP-UX to RedHat migration
Nope, redhat has it.
Apr
2
comment mailx and HP-UX to RedHat migration
It's a symbolic link manager, basically. It allows you to install different versions of tools (such as java) and easily control which one is "visible"
Apr
2
answered mailx and HP-UX to RedHat migration