DZone Snippets: Ntk's Code SnippetsDZone Snippets: Ntk's Code SnippetsInspect a website like a string in Ruby- July 9, 2008 Put the following function into your .bash_login (or alternatives). unset -f inspect_url function inspect_url() usrbincurl -L -s --max-time 10 "$" ruby -n -e 'p $_.to_s' return 0 inspect_url http:www.ruby-forum.comhttp://snippets.dzone.com/posts/show/5745 |