<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alexey Bokov's weblog &#187; bash</title>
	<atom:link href="http://bokov.net/weblog/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://bokov.net/weblog</link>
	<description>Anything that interests me</description>
	<lastBuildDate>Fri, 11 Nov 2011 12:32:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>MySQL create user and add table</title>
		<link>http://bokov.net/weblog/linux/mysql-create-user-and-add-table/</link>
		<comments>http://bokov.net/weblog/linux/mysql-create-user-and-add-table/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 12:05:07 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=619</guid>
		<description><![CDATA[Short how-to: root@215003:~# mysql -u root -p Enter password: mysql&#62; CREATE DATABASE s_db; mysql&#62; GRANT ALL PRIVILEGES ON s_db.* to 's_user'@'localhost' IDENTIFIED BY '12345678'; mysql&#62; FLUSH PRIVILEGES; mysql&#62;exit mysql -u s_user -p s_db &#60; database.sql &#60;code&#62;]]></description>
			<content:encoded><![CDATA[<p>Short how-to:<br />
<code><br />
root@215003:~# mysql -u root -p<br />
Enter password:<br />
mysql&gt; CREATE DATABASE s_db;<br />
mysql&gt; GRANT ALL PRIVILEGES ON s_db.* to 's_user'@'localhost' IDENTIFIED BY '12345678';<br />
mysql&gt; FLUSH PRIVILEGES;<br />
mysql&gt;exit<br />
mysql -u s_user -p s_db &lt; database.sql<br />
&lt;</code>code&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/linux/mysql-create-user-and-add-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bash tips &#8211; MySQL from script</title>
		<link>http://bokov.net/weblog/linux/bash-tips-mysql-from-script/</link>
		<comments>http://bokov.net/weblog/linux/bash-tips-mysql-from-script/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 12:32:51 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=602</guid>
		<description><![CDATA[Here it is ( with user name, password, database host and db name ) : mysql -uuser_name -ppassword -hmysql_host_server_.domain.com -Ddatabase_name &#60; database_commands.sql]]></description>
			<content:encoded><![CDATA[<p>Here it is ( with user name, password, database host and <code>db name ) :<br />
mysql -uuser_name -ppassword  -hmysql_host_server_.domain.com -Ddatabase_name &lt; database_commands.sql<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/linux/bash-tips-mysql-from-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bash tips &#8211; convert to lowercase</title>
		<link>http://bokov.net/weblog/programming/bash-tips-convert-to-lowercase/</link>
		<comments>http://bokov.net/weblog/programming/bash-tips-convert-to-lowercase/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 13:27:18 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sed. perl]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=519</guid>
		<description><![CDATA[You can use sed : sed -e 's/\([^\d]*\)/\L\1/' in.txt > out.txt or perl inliner : perl -ne 'utf8::decode $_; $_ = lc $_; utf8::encode $_; print' in.txt > out.txt . Both guys works fine for unicode file too.]]></description>
			<content:encoded><![CDATA[<p>You can use sed  :<br />
<code><br />
sed -e 's/\([^\d]*\)/\L\1/' in.txt > out.txt<br />
</code><br />
 or perl inliner :<br />
<code><br />
perl -ne 'utf8::decode $_; $_ = lc $_; utf8::encode $_; print' in.txt > out.txt<br />
</code>.<br />
Both guys works fine for unicode file too.</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/programming/bash-tips-convert-to-lowercase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>telnet in bash scripts</title>
		<link>http://bokov.net/weblog/administration/telnet-in-bash-scripts/</link>
		<comments>http://bokov.net/weblog/administration/telnet-in-bash-scripts/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 13:34:01 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=512</guid>
		<description><![CDATA[Using telnet in bash scripts to automate some stuff ? It&#8217;s really easy, here&#8217;s an example to tell &#8220;hello world&#8221; on telnet server : req="hello world" server="my_server 1234" val=`( echo open ${server} sleep 3 echo "${req}" sleep 1 ) &#124; telnet` echo $val]]></description>
			<content:encoded><![CDATA[<p>Using telnet in bash scripts to automate some stuff ? It&#8217;s really easy, here&#8217;s an example to tell &#8220;hello world&#8221; on telnet server :<br />
<code></p>
<p>req="hello world"<br />
server="my_server 1234"<br />
val=`( echo open ${server}<br />
  sleep 3<br />
  echo "${req}"<br />
  sleep 1 ) | telnet`<br />
echo $val<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/administration/telnet-in-bash-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create list of screenshots for list of urls ?</title>
		<link>http://bokov.net/weblog/search-engines/how-to-create-list-of-screenshots-for-list-of-urls/</link>
		<comments>http://bokov.net/weblog/search-engines/how-to-create-list-of-screenshots-for-list-of-urls/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 13:34:24 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[search engines]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[resize]]></category>
		<category><![CDATA[screenshots]]></category>
		<category><![CDATA[thumbnails]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=510</guid>
		<description><![CDATA[Okay, we have text file with list of urls and want to have firefox&#8217;s screenshots from this pages and also we need to have this screenshots in some normalized resolution ( like all images should be in 300&#215;400 &#8211; thumbnails ). First of all you need to install Command line print Firefox add-on. Then create [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, we have text file with list of urls and want to have firefox&#8217;s screenshots from this pages and also we need to have this screenshots in some normalized resolution ( like all images should be in 300&#215;400 &#8211; thumbnails ). First of all you need to install <a href="http://sites.google.com/site/torisugari/commandlineprint2">Command line print Firefox add-on</a>. Then create some simple script which will run firefox with needed url, print screenshot and close ( in my case via kill &#8211; may be it&#8217;s too brutal ) firefox in cycle. It may look like this  ( url_list.txt &#8211; file with urls &#8211; each url on its own line <img src='http://bokov.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ), after running this script you will have many *.png files which is screenshots for ulrs &#8211; 0.png &#8211; for first url in urls_list.txt, 1.png for second and so on.<br />
<code><br />
#!/bin/bash<br />
id=0<br />
while read line<br />
do<br />
firefox -print $line -printmode png -printdelay 10 -printfile ${id}.png<br />
ps ax | grep firefox  | awk '{ print $1 }' | xargs kill -9 ;<br />
id=$[$id+1]<br />
done &lt; urls_list.txt<br />
</code></p>
<p>And now then we have screenshots ( all this guys are in different resolution in common ) then we need to normalize them &#8211; to create thumbnails for all images in 300&#215;400 resolution &#8211; convert helps!<br />
<code><br />
for f in *.png;<br />
do<br />
convert -thumbnail 300x400!  ${f} thumb_${f}<br />
done<br />
</code><br />
And we have many thumb_*.pn with 300&#215;400 resolution all. A little note &#8211; using resolution without ! sign will work in another way &#8211; resize will be processed proportionally with using resize only for one dimension ( bigger one ).</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/search-engines/how-to-create-list-of-screenshots-for-list-of-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using JSON with bash</title>
		<link>http://bokov.net/weblog/programming/using-json-with-bash/</link>
		<comments>http://bokov.net/weblog/programming/using-json-with-bash/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 07:21:42 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[useful links]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[jsawk]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=341</guid>
		<description><![CDATA[Using json in bash : jsawk : work with an array of JSON objects read from stdin, filter them using JavaScript to produce a results array that is printed to stdout. For example get&#8217;s json ( from Yahoo image search by &#8216;madonna&#8217; query ) and add some info ( madonna&#8217;s real name ) to this [...]]]></description>
			<content:encoded><![CDATA[<p>Using json in bash :</p>
<ul>
<li><a href="http://github.com/micha/jsawk">jsawk</a> : work with an array of JSON objects read from stdin, filter them using JavaScript to produce a results array that is printed to stdout. For example get&#8217;s json ( from Yahoo image search by &#8216;madonna&#8217; query ) and add some info ( madonna&#8217;s real name ) to this</li>
<p><code> wget http://bokov.net/json_example.json<br />
cat json_example.json  | ./jsawk "this.ResultSet.RealName=\"Louise Ciccone\"" &gt; updated_info.json<br />
</code></p>
<li>you can use some bash/awk/sed stuff to parse json. For example &#8211; list all image urls from json</li>
<p><code>wget http://bokov.net/json_example.json<br />
cat json_example.json  | sed -e 's/[{}]/''/g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i&lt;=n; i++) print a[i]}' | grep '"ClickUrl":' | sed 's/:/ /1' | awk -F" " '{ print $2 }'<br />
</code></p>
<li>or use library from <a href="http://www.json.org/">json.org</a> for language which you like <img src='http://bokov.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ul>
<p>via <a href="http://l-o-n-g.livejournal.com/146422.html">v.kruchkov</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/programming/using-json-with-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash&#8217;s find usefull stuff</title>
		<link>http://bokov.net/weblog/administration/recursively-add-files-and-foldes-into-cvs/</link>
		<comments>http://bokov.net/weblog/administration/recursively-add-files-and-foldes-into-cvs/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 09:06:45 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=295</guid>
		<description><![CDATA[Recursively add files and foldes into CVS find . -type d -print &#124; grep -v CVS &#124; xargs -n1 cvs add Delete &#8220;.svn&#8221; files from current folder find . -type f  -exec echo \"{}\" \;  &#124; grep ".svn" &#124; xargs rm]]></description>
			<content:encoded><![CDATA[<ul>
<li>Recursively add files and foldes into CVS</li>
</ul>
<pre>find . -type d -print | grep -v CVS | xargs -n1 cvs add</pre>
<ul>
<li>Delete &#8220;.svn&#8221; files from current folder</li>
</ul>
<pre>find . -type f  -exec echo \"{}\" \;  | grep ".svn" | xargs rm</pre>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/administration/recursively-add-files-and-foldes-into-cvs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick steps to configure Ubuntu for with EC2 API</title>
		<link>http://bokov.net/weblog/ec2/quick-steps-to-configure-ubuntu-for-with-ec2-api/</link>
		<comments>http://bokov.net/weblog/ec2/quick-steps-to-configure-ubuntu-for-with-ec2-api/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 11:28:00 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bashrc]]></category>
		<category><![CDATA[ec2 api]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=245</guid>
		<description><![CDATA[Here&#8217;s some steps which I frequently use to configure Ubuntu to work as EC2 manager 1) Remove all non sun&#8217;s java &#8211; openjdk, gij apt-get uninstall openjdk-* apt-get uninstall gij-* 2) And install  java from sun apt-get install sun-java6-jdk 3) Install EC2 API cd /home/abokov/ http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip unzip ec2-api-tools.zip 4) Configure environment : I just add [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s some steps which I frequently use to configure Ubuntu to work as EC2 manager<br />
<span id="more-245"></span>1) Remove all non sun&#8217;s java &#8211;  openjdk, gij</p>
<address><em>apt-get uninstall openjdk-*</em></address>
<address><em> apt-get uninstall gij-*</em></address>
<p><em> </em>2) And install  java from sun<em><br />
apt-get install sun-java6-jdk</em></p>
<p>3) Install <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&amp;categoryID=88">EC2 API</a><br />
<em>cd /home/abokov/</p>
<p>http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip</p>
<p>unzip ec2-api-tools.zip</em></p>
<p>4) Configure environment : I just add lines below to my ~/.bashrc<br />
<em>#ec2 deal with stuff<br />
export JAVA_HOME=/usr/lib/jvm/java-6-sun<br />
# setting up Amazon EC2<br />
export EC2_HOME=/home/abokov/ec2-api-tools-1.3-30349<br />
export PATH=$PATH:$EC2_HOME/bin:<br />
export EC2_PRIVATE_KEY=/home/abokov/keys/pk-XXX.pem<br />
export EC2_CERT=/home/abokov/keys/cert-XXX.pem</em></p>
<p><em>export EC2_ACCESS_KEY_ID=***<br />
export EC2_SECRET_ACCESS_KEY=***</em></p>
<p>It&#8217;s should be ready &#8211; you may check it out by run in terminal :</p>
<address> ec2-describe-instances.</address>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/ec2/quick-steps-to-configure-ubuntu-for-with-ec2-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using SDM to managing OpenSolaris zones</title>
		<link>http://bokov.net/weblog/ec2/using-sdm-to-managing-opensolaris-zones/</link>
		<comments>http://bokov.net/weblog/ec2/using-sdm-to-managing-opensolaris-zones/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 08:03:44 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[compute grid]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[compute cloud]]></category>
		<category><![CDATA[Elastic Compute Cloud]]></category>
		<category><![CDATA[hedeby]]></category>
		<category><![CDATA[qconf]]></category>
		<category><![CDATA[SGE]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=240</guid>
		<description><![CDATA[Sun Grid Engine&#8217;s top engineer Richard Hierlmeier wrote article ( and some bash scripts which implements it &#8211; btw why you not to put it them onto your cvs? ) about using SDM in compute cloud ( here&#8217;s EC2 as example, I suppose that GoGrid can be used also without too many changes ) &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Sun Grid Engine&#8217;s top engineer Richard Hierlmeier  wrote article ( and some <a href=http://blogs.sun.com/rhierlmeier/resource/zones-script-0.1.tar.gz>bash scripts which implements it</a> &#8211; btw why you not to put it them onto your cvs? ) about using SDM  in compute cloud ( here&#8217;s EC2 as example, I suppose that GoGrid can be used also without too many changes ) &#8211; <a href="http://blogs.sun.com/rhierlmeier/entry/using_sdm_cloud_adapter_to">Using SDM Cloud Adapter to Manage Solaris Zones</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/ec2/using-sdm-to-managing-opensolaris-zones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to dump oracle table into tab separated text file ( csv )</title>
		<link>http://bokov.net/weblog/programming/how-to-dump-oracle-table-into-tab-separated-text-file-csv/</link>
		<comments>http://bokov.net/weblog/programming/how-to-dump-oracle-table-into-tab-separated-text-file-csv/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 18:35:57 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[sqlplus]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=237</guid>
		<description><![CDATA[My way &#8211; run sqlplus, spool in using html markup and convert this html onto text by using sed replacements. It works fast enought, and better than parse resulted text by spool without markup. Bash script which impelement it is under below #!/bin/bash # alexey bokov &#8211; http://bokov.net/weblog # script converts(spool=dump) oracle table onto tab [...]]]></description>
			<content:encoded><![CDATA[<p>My way &#8211; run sqlplus, spool in using html markup and convert this html onto text by using sed replacements. It works fast enought, and better than parse resulted text by spool without markup. Bash script which impelement it is under below <span id="more-237"></span></p>
<address> #!/bin/bash</address>
<address> # alexey bokov &#8211; http://bokov.net/weblog<br />
</address>
<address> # script converts(spool=dump) oracle table onto tab separated text file via spooling it html and convert html to text.</address>
<address> # strange way, but it works.</address>
<address>OUTPUT_TEXT_FILE=&#8221;./oracle_db.csv&#8221;</address>
<address>ORACLE_USER=USER<br />
ORACLE_PASSWORD=1234<br />
ORACLE_TABLE=MY_DATA<br />
HTML_FILE=&#8221;./dump.html&#8221;</address>
<address>ORACLE_QUERY=&#8221;./req.sql&#8221;</address>
<address>echo &#8220;set echo off&#8221; &gt; $ORACLE_QUERY<br />
echo &#8220;set markup html on&#8221; &gt;&gt; $ORACLE_QUERY<br />
echo &#8220;set linesize 500&#8243; &gt;&gt; $ORACLE_QUERY<br />
echo &#8220;set pagesize 0&#8243; &gt;&gt; $ORACLE_QUERY<br />
echo &#8220;set newpage 0&#8243; &gt;&gt; $ORACLE_QUERY<br />
echo &#8220;set termout off&#8221; &gt;&gt; $ORACLE_QUERY<br />
echo &#8220;spool $HTML_FILE&#8221; &gt;&gt; $ORACLE_QUERY<br />
echo &#8220;select * from $ORACLE_TABLE;&#8221; &gt;&gt; $ORACLE_QUERY<br />
echo &#8220;spool off&#8221; &gt;&gt; $ORACLE_QUERY<br />
echo &#8220;exit;&#8221; &gt;&gt; $ORACLE_QUERY</address>
<address>echo &#8220;Spool $ORACLE_TABLE onto $HTML_FILE ( take some time )&#8230;&#8221;<br />
sqlplus $ORACLE_USER/$ORACLE_PASSWORD @$ORACLE_QUERY</address>
<address>echo &#8220;Convert html onto text file ( take some time also )&#8230;&#8221;<br />
# replace all eol<br />
tr &#8216;\n&#8217; &#8216; &#8216; &lt; $HTML_FILE &gt; $OUTPUT_TEXT_FILE<br />
sed -i &#8216;s/<br />
/\n/g&#8217; $OUTPUT_TEXT_FILE<br />
sed -i &#8216;s/&lt;\/td&gt;/\t/g&#8217; $OUTPUT_TEXT_FILE</address>
<address># replace all most html tags<br />
sed -i &#8216;s/&lt;[^&gt;]*&gt;//g&#8217;  $OUTPUT_TEXT_FILE</address>
<address>#replace   &#8221; &amp;<br />
sed -i &#8216;s/ / /g&#8217; $OUTPUT_TEXT_FILE<br />
sed -i &#8216;s/&#8221;/&#8221;/g&#8217; $OUTPUT_TEXT_FILE<br />
sed -i &#8216;s/&amp;/-/g&#8217; $OUTPUT_TEXT_FILE</address>
<address>#cleanup<br />
rm $HTML_FILE<br />
rm $ORACLE_QUERY</address>
<address>echo &#8221; Done, check out $OUTPUT_TEXT_FILE for result&#8230;&#8221;</address>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/programming/how-to-dump-oracle-table-into-tab-separated-text-file-csv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

