20,429 reputation
54477
bio website mikelward.com
location Mountain View, CA
age 34
visits member for 4 years
seen 2 hours ago

Computer guy from Australia now living in the US.

Part sysadmin, part developer, part web developer.

My name is pronounced like "Michael".


2h
comment Switch to parent shell without logging out
In zsh you can just run suspend.
2d
awarded  Yearling
Dec
12
comment ifconfig -a get needed data grepping
Try starting with ip address show. Use ip route to get the gateway.
Dec
7
awarded  Altruist
Dec
6
awarded  Investor
Dec
3
revised bash NOT reading .bashrc on RHEL 6
edited title
Dec
2
comment BASH Program to remove files, Integer expression expected
You're missing the dollar sign in if [ -z "MAXFILES" ].
Dec
2
comment Shell: How to read the bytes of a binary file and print as hexadecimal?
Perhaps. But in this case, the scope of $offset is limited by the subshell, so I don't see it as a problem.
Nov
5
comment keep the last file of every month and delete the rest
Looks like the day is missing a leading zero. But your script looks like it should generate the leading zero. Vamsi Krishna, did you copy the script exactly?
Nov
5
revised keep the last file of every month and delete the rest
deleted 46 characters in body; edited title
Nov
2
revised Reading and searching long man pages
deleted 6 characters in body
Nov
2
revised How to filter any part of description or option from manpage
added 59 characters in body
Nov
2
revised How to filter any part of description or option from manpage
rolled back to a previous revision
Oct
30
awarded  Enlightened
Oct
30
awarded  Nice Answer
Oct
29
awarded  Disciplined
Oct
28
revised How to do grep even if the file is not present?
deleted 4 characters in body
Oct
28
answered How to do grep even if the file is not present?
Oct
28
revised How to do grep even if the file is not present?
deleted 2 characters in body
Oct
28
comment How to do grep even if the file is not present?
There are several problems with your question, not least of which, the code you posted doesn't hang.