848 reputation
27
bio website
location NYC
age
visits member for 9 months
seen 17 hours ago
stats profile views 29

Apr
29
revised bash script - supervisor program
cleaned up code sample backquote collisions
Apr
29
suggested suggested edit on bash script - supervisor program
Feb
1
comment Single command to check if file exists, and print (custom) message to stdout?
how about ( [ -f py_concur.py ] && echo "file exists" ) || echo "file does not exist"?
Jan
30
comment Difference between [[ $variable ]] and [[ -n $variable ]]?
+1 for the link which is very informative however Stephane Chazelas's answer, which I accepted, is more to the point.
Jan
30
accepted Difference between [[ $variable ]] and [[ -n $variable ]]?
Jan
30
asked Difference between [[ $variable ]] and [[ -n $variable ]]?
Jan
29
comment How to “grab” matching files from a lookup file in bash?
ah...that's interesting. +1 for an excellent solution
Jan
29
comment How to “grab” matching files from a lookup file in bash?
quick question, why is there a trailing /. in the directory check -d "$x/."rather than -d "$x"?
Jan
12
comment Why is $'\0' the same as ''?
@slhck, thanks. What about situations involving multi-step operations on each file where a loop may be preferable for readability reasons? Is there a better loop option than the "naïve way" above?
Jan
12
comment Why is $'\0' the same as ''?
Referring to the "naïve" way, is there a better way of doing this?
Jan
11
comment scheduling background tasks in succession
+1 not for the answerer but for @jordanm!
Jan
9
comment How do I remove carriage returns from directory names?
+1 for a working solution. The downvote is probably from the bash purist brigade for parsing command substitution output, this is deemed a pitfall(mywiki.wooledge.org/BashPitfalls#for_i_in_.24.28ls_.2A.mp3.29). The preferred option is to use a combination of read and find with NUL byte separators see mywiki.wooledge.org/BashFAQ/020
Jan
9
comment Installing prstat package command on Ubuntu Linux
To my understanding prstat is Solaris-specific, any reason top or htop are not options?
Jan
8
comment Is there a command line utility to transpose a csv-file?
what does /tmp/l represent? Additionally, would it not be simpler to loop through the columns rather than lines, something along the lines of for ((i=1; i<=$num_cols; ++i)); do paste -s -d, <(cut -f$i -d, file.txt); done
Jan
7
revised How to use cut command to get the first and last elements of a row?
added 6 characters in body
Jan
7
answered How to use cut command to get the first and last elements of a row?
Dec
8
comment variable assignment and IFS
got it..thank you
Dec
8
accepted variable assignment and IFS
Dec
8
revised variable assignment and IFS
deleted 48 characters in body
Dec
8
revised variable assignment and IFS
added 2 characters in body