4,463 reputation
619
bio website
location Ottawa, Canada
age
visits member for 3 years, 9 months
seen Nov 20 at 5:08

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


Nov
20
comment shuffle filenames inside a folder and place changes in a text file
quotes are not required for variable assignments (ref). You are correct to quote "$new" for the mv command.
Nov
20
comment shuffle filenames inside a folder and place changes in a text file
@DavidFoerster, spaces? Why wouldn't it? I use a wildcard to populate the array instead of parsing output from some program. Everything is properly quoted. The only hesitation I had was extracting the extension (no guarantee of a dot)
Nov
19
answered shuffle filenames inside a folder and place changes in a text file
Nov
19
comment Is there any default function/utility to prompt the user for yes/no in a Bash script?
@muru, I'm totally stealing your ideas. I wish I could hand my rep to you.
Nov
19
revised Is there any default function/utility to prompt the user for yes/no in a Bash script?
added 290 characters in body
Nov
19
comment Is there any default function/utility to prompt the user for yes/no in a Bash script?
Indeed. Added to the answer.
Nov
19
revised Is there any default function/utility to prompt the user for yes/no in a Bash script?
added 152 characters in body
Nov
19
answered Is there any default function/utility to prompt the user for yes/no in a Bash script?
Nov
19
answered Is there any default function/utility to prompt the user for yes/no in a Bash script?
Nov
17
revised script skipping user input in nested case statement
deleted 2 characters in body
Nov
17
comment What is the point of the bash Null-operator “:”, colon?
Read about the : command and parameter expansion in the bash manual.
Nov
14
revised What is the point of the bash Null-operator “:”, colon?
added 1 character in body
Nov
14
answered What is the point of the bash Null-operator “:”, colon?
Nov
12
comment How to find all patterns between two characters?
which is why I wrote that the expression must consume the trailing quote.
Nov
12
answered How to find all patterns between two characters?
Nov
11
answered Concealing long paths in variables in Bash
Nov
8
answered Need audio player for bash script
Nov
7
comment how can i use command history in a bash file
This makes no sense to me: you're running a script, so you know exactly what commands were executed. Why do you need history?
Nov
3
comment invoke a script on fail of a bash script
Would createSite.sh || rollback.sh suffice?
Oct
28
comment Sed matching problem, output not as expected
That's an end-of-word marker in sed's basic regular expressions