<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-25567871</id><updated>2011-04-22T02:21:42.487+08:00</updated><title type='text'>Do? y/n</title><subtitle type='html'>mainly technology tips about linux, oracle etc. 
some may about things around me.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dynofu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25567871/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dynofu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Dyno Fu</name><uri>http://www.blogger.com/profile/14779815426552241707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://farm3.static.flickr.com/2382/2182924472_851466b340_b.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-25567871.post-6534060465406642820</id><published>2008-04-24T18:34:00.001+08:00</published><updated>2008-04-24T18:34:58.017+08:00</updated><title type='text'>tiantan</title><content type='html'>&lt;div style="float: right; margin-left: 10px; margin-bottom: 10px;"&gt; &lt;a href="http://www.flickr.com/photos/dynofu/2416467526/" title="photo sharing"&gt;&lt;img src="http://farm4.static.flickr.com/3194/2416467526_65e699d481_m.jpg" alt="" style="border: solid 2px #000000;" /&gt;&lt;/a&gt; &lt;br /&gt; &lt;span style="font-size: 0.9em; margin-top: 0px;"&gt;  &lt;a href="http://www.flickr.com/photos/dynofu/2416467526/"&gt;iFlickr&lt;/a&gt;  &lt;br /&gt;  Originally uploaded by &lt;a href="http://www.flickr.com/people/dynofu/"&gt;dynofu&lt;/a&gt; &lt;/span&gt;&lt;/div&gt;tiantan&lt;br clear="all" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25567871-6534060465406642820?l=dynofu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dynofu.blogspot.com/feeds/6534060465406642820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25567871&amp;postID=6534060465406642820' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25567871/posts/default/6534060465406642820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25567871/posts/default/6534060465406642820'/><link rel='alternate' type='text/html' href='http://dynofu.blogspot.com/2008/04/tiantan.html' title='tiantan'/><author><name>Dyno Fu</name><uri>http://www.blogger.com/profile/14779815426552241707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://farm3.static.flickr.com/2382/2182924472_851466b340_b.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://farm4.static.flickr.com/3194/2416467526_65e699d481_t.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25567871.post-114553784292411559</id><published>2006-04-20T20:57:00.000+08:00</published><updated>2006-04-20T20:57:23.696+08:00</updated><title type='text'>network diagnose</title><content type='html'>&lt;p class="mobile-post"&gt;#change hostname&lt;br /&gt;echo "HOSTNAME=&amp;lt;ur_hostname&amp;gt;" &amp;gt;&amp;gt; /etc/sysconfig/network&lt;/p&gt;&lt;p class="mobile-post"&gt;#server lookup&lt;br /&gt;#hostnames: /etc/hosts&lt;br /&gt;#dns: /etc/resolv.conf&lt;/p&gt;&lt;p class="mobile-post"&gt;#nic configuration: /etc/sysconfig/network-scripts/&lt;/p&gt;&lt;p class="mobile-post"&gt;#gateway&lt;br /&gt;netstat -rn&lt;/p&gt;&lt;p class="mobile-post"&gt;#port defination: /etc/services&lt;/p&gt;&lt;p class="mobile-post"&gt;#restart network&lt;br /&gt;/etc/rc.d/init.d/network restart&lt;/p&gt;&lt;p class="mobile-post"&gt;#to change the IP address to 192.168.0.10 temporarily&lt;br /&gt;ifconfig eth0 inet 192.168.0.10 netmask 255.255.255.0&lt;/p&gt;&lt;p class="mobile-post"&gt;#adds a route to the network 192.56.76.x via "eth0".&lt;br /&gt;route add -net 192.56.76.0 netmask 255.255.255.0 eth0&lt;/p&gt;&lt;p class="mobile-post"&gt;#nmap &amp;amp; netstat deserve another article&lt;br /&gt;--&lt;br /&gt;For many are called, but few are chosen.&lt;br /&gt;                     -- Matthew 22:14&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25567871-114553784292411559?l=dynofu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dynofu.blogspot.com/feeds/114553784292411559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25567871&amp;postID=114553784292411559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25567871/posts/default/114553784292411559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25567871/posts/default/114553784292411559'/><link rel='alternate' type='text/html' href='http://dynofu.blogspot.com/2006/04/network-diagnose.html' title='network diagnose'/><author><name>Dyno Fu</name><uri>http://www.blogger.com/profile/14779815426552241707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://farm3.static.flickr.com/2382/2182924472_851466b340_b.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25567871.post-114437563057415130</id><published>2006-04-07T10:07:00.000+08:00</published><updated>2006-04-07T10:07:10.583+08:00</updated><title type='text'>Re: [dyno's blog for tech] string manipulation in bash script</title><content type='html'>&lt;p class="mobile-post"&gt;#!/bin/sh&lt;br /&gt;#basic string manipulation using shell script&lt;/p&gt;&lt;p class="mobile-post"&gt;set -v&lt;/p&gt;&lt;p class="mobile-post"&gt;s=" hello world! racn4 "&lt;br /&gt;#  01234567890123456789&lt;/p&gt;&lt;p class="mobile-post"&gt;#length&lt;br /&gt;echo ${#s}&lt;br /&gt;expr length "$s"&lt;/p&gt;&lt;p class="mobile-post"&gt;#index&lt;br /&gt;ss='world'&lt;br /&gt;expr index "$s" $ss&lt;/p&gt;&lt;p class="mobile-post"&gt;#substr&lt;br /&gt;echo ${s:14}	&lt;br /&gt;echo ${s:14:4}	&lt;br /&gt;echo ${s:(-2)}	&lt;/p&gt;&lt;p class="mobile-post"&gt;#match&lt;br /&gt;[[ $s =~ "o.*o" ]] &amp;amp;&amp;amp; echo "yes"&lt;br /&gt;(echo $s | grep -q "o.*o") &amp;amp;&amp;amp; echo "yes"&lt;/p&gt;&lt;p class="mobile-post"&gt;#trim space&lt;br /&gt;s=${s%% }&lt;br /&gt;s=${s## }&lt;br /&gt;echo "&amp;lt;${s}&amp;gt;"&lt;/p&gt;&lt;p class="mobile-post"&gt;#basic replace&lt;br /&gt;echo ${s/o/O}&lt;br /&gt;echo ${s/#h/O}&lt;br /&gt;echo ${s/%racn4/O}&lt;br /&gt;echo ${s//o/O}&lt;/p&gt;&lt;p class="mobile-post"&gt;#trim pre/postfix&lt;br /&gt;echo ${s#h*o}&lt;br /&gt;echo ${s##h*o}&lt;br /&gt;echo ${s%o*4}&lt;br /&gt;echo ${s%%o*4}&lt;/p&gt;&lt;p class="mobile-post"&gt;#upper/lower case&lt;br /&gt;echo $(tr 'a-z' 'A-Z' &amp;lt;&amp;lt;&amp;lt; $s)&lt;/p&gt;&lt;p class="mobile-post"&gt;#comparation&lt;br /&gt;[[ $s &amp;gt; "hello" ]] &amp;amp;&amp;amp; echo "hello"&lt;/p&gt;&lt;p class="mobile-post"&gt;#number conversion&lt;br /&gt;x="2"; y=3&lt;br /&gt;echo $(($x + $y))&lt;/p&gt;&lt;p class="mobile-post"&gt;#for more complicated manipulation using grep/sed/awk instead&lt;/p&gt;&lt;p class="mobile-post"&gt;--&lt;br /&gt;For many are called, but few are chosen.&lt;br /&gt;                     -- Matthew 22:14&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/25567871-114437563057415130?l=dynofu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dynofu.blogspot.com/feeds/114437563057415130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=25567871&amp;postID=114437563057415130' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25567871/posts/default/114437563057415130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25567871/posts/default/114437563057415130'/><link rel='alternate' type='text/html' href='http://dynofu.blogspot.com/2006/04/re-dynos-blog-for-tech-string.html' title='Re: [dyno&apos;s blog for tech] string manipulation in bash script'/><author><name>Dyno Fu</name><uri>http://www.blogger.com/profile/14779815426552241707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://farm3.static.flickr.com/2382/2182924472_851466b340_b.jpg'/></author><thr:total>0</thr:total></entry></feed>
