I can recreate my system from backup in
Seconds Minutes Hours Days Weeks Never tested Never backed up ( 473 votes ~ 6 comments )
You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.
To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.
This is the comment you were replying to, attached to the weblog Determine your public IP address quickly
#2 Re: Determine your public IP address quickly Posted by mnaumann (213.39.xx.xx) on Fri 16 Mar 2007 at 12:20 You're a quick commenter. Indeed, aliasing it is a nice idea. And I'm a perfectionist who dislikes leading spaces. So, here's an update based on your suggestion. alias my_ip='wget -qO - checkip.dyndns.org|cut -d":" -f2|cut -d"<" -f1|cut -d" " -f2' Based on timing tests, wget + cut is indeed much faster than perl's GET + sed (as one would expect). wget + cut should also use less memory and CPU resources.
You're a quick commenter. Indeed, aliasing it is a nice idea. And I'm a perfectionist who dislikes leading spaces. So, here's an update based on your suggestion.
alias my_ip='wget -qO - checkip.dyndns.org|cut -d":" -f2|cut -d"<" -f1|cut -d" " -f2'
Based on timing tests, wget + cut is indeed much faster than perl's GET + sed (as one would expect). wget + cut should also use less memory and CPU resources.
Posting Format:
Inappropriate comments will be removed.
Some help on entry formatting is available
Username:
Password:
[ Advanced Login ]
Register Account