3,100 reputation
415
bio website
location Ottawa, Canada
age
visits member for 3 years, 2 months
seen 14 hours ago

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


Apr
7
revised getting highest value in files and storing the next values as per desired count
added 129 characters in body
Apr
7
comment getting highest value in files and storing the next values as per desired count
+1 good answer. I'd use an array myself: v=( $((max+1)) $((max+2)) $((max+3)) ) but the OP asked for vars.
Apr
6
answered How to tar the n most recent files with spaces in filename?
Apr
4
comment Add strings to a file with commands
+1. You can use & in place of $str on the right-hand side.
Apr
3
comment Sorting the output of my directory
$9 won't contain the full filename if there are spaces.
Apr
1
comment Is there a way to shorten(not remove) the path displayed in the terminal by an alias
in bash, aliases can only be aliases for commands. They cannot be substituted just anywhere, they are only commands. But yes, you can modify that code to just substitute a prefix of $PWD
Apr
1
revised Is there a way to shorten(not remove) the path displayed in the terminal by an alias
added 672 characters in body
Apr
1
answered Is there a way to shorten(not remove) the path displayed in the terminal by an alias
Mar
28
revised Grab a field without a fixed position via awk
use "declare" in eval call for safety
Mar
28
answered Grab a field without a fixed position via awk
Mar
27
answered How can I process multi-line records with awk in a bash script?
Mar
26
comment Script to move pictures
I shall only use my powers for evil...
Mar
26
awarded  Revival
Mar
25
awarded  Mortarboard
Mar
25
answered Store output of command into the array
Mar
25
comment execute local bash script in remote machine using expect
bah, there are quoting issues there ("there be dragons..."). Let us know how you get on.
Mar
25
answered execute local bash script in remote machine using expect
Mar
23
comment bash file comparison line by line with selected string
Typically you show what you tried, and we can tell you where we find errors. I can think of an awk and a join answer.
Mar
23
revised bash file comparison line by line with selected string
formatting
Mar
23
comment Automaticly starting Bash-script when opening graphical programm
Turn your requirements around: write a bash script that does what you need then the script launches LibreOffice.