5,245 reputation
64273
bio website michaeldurrant.com
location Cambridge, MA
age 40
visits member for 3 years, 7 months
seen 2 hours ago

rails ruby


Mar
25
awarded  Nice Question
Mar
16
accepted Can I make [ $(($1 % $check)) -ne 0 ]; be more performant and not be killed?
Mar
16
accepted How to pass an array to a function as an actual parameter rather than a global variable
Mar
16
accepted How can I pass on parameters 4..99 to another function
Mar
16
accepted value too great for base (error token is “08”)
Mar
16
accepted How can I have my .vimrc detect what OS I'm using?
Mar
16
accepted Why did a recent Ubuntu 14.04 update mess up my PS1 prompt?
Mar
16
accepted How to base awk selection on contents of 1 field?
Mar
16
accepted Can I refer to a global variable even if a locally scoped one exists with the same name?
Mar
16
accepted Use #!/bin/sh or #!/bin/bash for Ubuntu-OSX compatibility and ease of use & POSIX
Mar
16
accepted Why is using && 75 times faster than if…fi and how to make code clearer
Mar
12
comment How can I get a count of files in a directory using the command line?
+1 Allow for hidden files and ignores directories
Mar
12
comment How can I get a count of files in a directory using the command line?
Doesn't account for hidden (".") files.
Mar
11
accepted How to have getopts functionality when just calling another function within the file
Mar
9
comment How to have getopts functionality when just calling another function within the file
Thanks. What if the values themselves are not determined until the actual call. This is what I am looking for (I should have been clearer in my example, was trying to give a simple example).
Mar
9
asked How to have getopts functionality when just calling another function within the file
Mar
5
answered How to force decimal addition (#10) when adding numbers with a carry (octal issue)
Mar
5
asked How to force decimal addition (#10) when adding numbers with a carry (octal issue)
Mar
3
comment Add extra parameter for text label or just echo it outside the call?
Yes, I've been thinking it might be time for getopts.
Mar
3
asked Add extra parameter for text label or just echo it outside the call?