glenn jackman

Ottawa, Canada

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

10h
comment How to select the nth char from a string for each line in a file?
note that the offset and length fields of that expansion are already treated as arithmetic expressions, so you can get away with ${word:n-1:1}
10h
comment How to select the nth char from a string for each line in a file?
Are you allowed to use shell builtin commands, or are you limited to sed?
10h
answered Passing arguments back and forth between PHP and shell
13h
comment Variables in Bash to display while in single quotes?
The problem is probably in whatever is receiving the "-parValue" option. You actually do need to go into more details.
13h
comment .desktop file doesn't execute a script, works fine when run by hand
What error appears? You don't mention it in your question. "Doesn't work" is the worst possible problem description.
14h
answered .desktop file doesn't execute a script, works fine when run by hand
14h
answered expect + how to verify if dir exists and if not how to create it
14h
awarded Populist
1d
answered compare time between two sequential log entries
1d
answered expand ssh hostname in shell script
2d
answered Asynchronous execution of commands in Shell
2d
comment expand ssh hostname in shell script
This sounds like an XY problem -- what problem are you're really trying to solve?
2d
revised ruby get Time in given timezone
edited body
2d
reviewed Reject suggested edit on ruby get Time in given timezone
Aug
31
comment Can sed and awk take in multiple files?
They certainly can. Check their man pages. Neither has a "recursive" option, but most likely your shell can handle that for you (bash: shopt -s globstar; sed '...' **/*.txt), else you can use find.
Aug
31
comment How do i get the playing song details(title - artist- album.. etc) in ubuntu
I imagine the answer will be app-specific.
Aug
30
answered How do i get the playing song details(title - artist- album.. etc) in ubuntu
Aug
30
comment Syntax error expr
Online documentation: developer.apple.com/library/mac/documentation/Darwin/Reference/…
Aug
30
revised Imagemagick - Blank Gif created when trying to combine PNGs
Q not bash or linux specific
Aug
30
comment How to ensure a bash script is executable via web without being in /cgi-bin directory?
Apache must be configured to turn on CGI: httpd.apache.org/docs/2.2/howto/cgi.html
1 2 3 4 5