I am the first user
            to earn at least 30,000
            reputation points each

                 
                    on all three of
                  Stack Overflow,
                 Server Fault and
                     Super User.


         I was also the first user to
surpass 10,000 and 20,000 points each
          on all three of those sites.


Are you a Stackathlete?

Check the standings on


Profile:
I'm a Unix/Linux sysadmin/programmer

Devotion to Duty
Devotion to Duty
Try my unofficial Printifier for xkcd.

15h
comment How to reload screenrc without restarting screen?
@FelikZ: Permissions on symlinks will be 777, what are the permissions and ownership on the target of the symlink?
17h
comment How to reload screenrc without restarting screen?
@FelikZ:As a symlink to what? What are the permissions and ownership of that target file?
2d
comment IP Address Converter
@shacharsol: If you're referring to the AWK version of ip2dec, dec is initialized automatically to a null value when the BEGIN clause first encounters it. If you use it outside BEGIN perhaps by defining a function then you probably would need to explicitly initialize it.
May
19
awarded Guru
May
18
awarded Nice Answer
May
18
comment Multiple parameters to bash script
@MikeBlandford: There was a missing do which I have fixed.
May
18
revised Multiple parameters to bash script
fix missing "do"
May
15
awarded Great Answer
May
14
comment How to split a file and keep the first line in each of the pieces?
@JohnathanElmore: Note that GNU utilities are available for OS X. Using Homebrew, for example.
May
10
awarded Nice Answer
May
7
comment How do I write an alias for grep -R?
@FabricioPH: If an option gets a parameter, it must be separated from other options and paired with its parameters. For example (hypothetical): foo -a bar -bcd baz in which -a gets the parameter bar and -bcd is really -b -c -d all run together and baz may be a parameter of -d or it may be a positional argument of foo. In the case of the grep example in my answer, -R means "recursive, follow symlinks" and gets no parameter and -f means "file" and takes a filename as a parameter, in this case - which means stdin. See my comment above yours. Some option formats may differ.
May
6
awarded Nice Answer
May
5
comment Bash - get last dirname/filename in a file path argument
@ButtleButkus: You should use while instead of for to iterate over the output of find (find -print0 | xargs -0 is better) or use globbing: for d in $SOMEFOLDER/*/ (the final slash works like -type d - you can use ** in Bash 4 for recursion if you shopt -s globstar, but an "Argument list too long" message is possible). Note that the ${1} portion of the command represents the first argument of a script or function. You may need to use ${d##*/} or some other variable or argument specification or make sure that an argument is being passed in $1
May
5
comment How to detect if a script is being sourced
@UpAndAdam: True, captured or used immediately. I have described the latter in my answer.
May
5
comment How to remove XML tags from Unix command line?
@kenorb: Note that GNU utilities are available for OS X. Using Homebrew, for example.
May
5
comment Bash - get last dirname/filename in a file path argument
@ButtleButkus: Show me what you did and what you expected as the result, because it will work.
May
4
awarded regex
May
1
awarded Good Answer
May
1
awarded Yearling
May
1
awarded Yearling
1 2 3 4 5