19,220 reputation
54168
bio website mikelward.com
location Mountain View, CA
age 33
visits member for 3 years, 8 months
seen 30 mins ago

Computer guy from Australia now living in the US.

Part sysadmin, part developer, part web developer.

My name is pronounced like "Michael".


1d
comment Why doesn't this piped script work?
The echo doesn't happen until after nc reads something.
2d
awarded  Great Answer
Aug
16
answered Use a shell not installed on remote machine
Aug
7
comment Is there a way to prevent a non-terminal-attached process from executing 'who' inside my .envfile?
Your question doesn't explain why you need who am i rather than id -un or something simpler.
Aug
7
comment Is there a way to prevent a non-terminal-attached process from executing 'who' inside my .envfile?
@Max Please update the question to mention this.
Aug
3
comment How can I reverse the first part of a sentence?
Done, but untested (not at my computer).
Aug
3
revised How can I reverse the first part of a sentence?
added 12 characters in body
Aug
3
comment How can I reverse the first part of a sentence?
Yeah, we can use read -r and printf '%s if necessary.
Aug
3
answered How can I reverse the first part of a sentence?
Aug
3
comment How can I reverse the first part of a sentence?
So the problem is: given $1 $2 $3...$n, print (rev $1) $2 $3...$n?
Aug
3
comment Is dash or some other shell “faster” than bash?
But for your dash test case it's only seq 1 1000?
Aug
3
comment Is dash or some other shell “faster” than bash?
I assume seq 1 100000 should be seq 1 1000?
Aug
3
comment Is it possible to use multiple here-docs in bash?
cat <<EOF isn't exactly the same as cat /dev/fd/0...: in the latter case cat sees the file name and does the open.
Aug
2
comment Is dash or some other shell “faster” than bash?
Minor point: [ should also be a builtin.
Jul
30
comment Format of /etc/hosts on Linux (different from Windows?)
spaces. I suppose to be more correct, it's hostname [hostalias[,hostalias]*].
Jul
27
comment What are the positions in `free` called?
Yes, the first paragraph is wrong, as I said in the comment above.
Jul
27
comment What are the positions in `free` called?
kbmemused is the same as the Mem used cell in the free output.
Jul
27
comment What are the positions in `free` called?
Yeah, would be better to do sar -r 1 1; free to compare them.
Jul
27
answered What are the positions in `free` called?
Jul
25
awarded  Enlightened