<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Thanks to antville.org</title>
    <link>https://oksoft.antville.org/</link>
    <description>Adding Value with limited resources</description>
    <language>en</language>
    <pubDate>Wed, 17 Jun 2026 18:56:23 GMT</pubDate>
    <dc:date>2026-06-17T18:56:23Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Tuning MySQL</title>
      <link>https://oksoft.antville.org/stories/2228880/</link>
      <description>&lt;p&gt;Getting the shell script:wget &lt;a href="https://launchpadlibrarian.net/78745738/tuning-primer.sh"&gt;launchpadlibrarian.net&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Running:sh tuning-primer.sh&lt;/p&gt;</description>
      <pubDate>Fri, 04 Sep 2015 15:34:02 GMT</pubDate>
      <guid>https://oksoft.antville.org/stories/2228880/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2015-09-04T15:34:02Z</dc:date>
    </item>
    <item>
      <title>Check for table corruption quick and fast</title>
      <link>https://oksoft.antville.org/stories/2160677/</link>
      <description>&lt;p&gt;#!/bin/sh&lt;/p&gt;&lt;p&gt;for dbname in &lt;code&gt;mysqlshow | awk '{print $2}'&lt;/code&gt;domysqlcheck $dbname ticket -Fqdone&lt;/p&gt;&lt;h1&gt;call this shell script and find the errors&lt;/h1&gt;&lt;p&gt;time sh  check.sh | grep error&lt;/p&gt;</description>
      <pubDate>Mon, 13 May 2013 15:39:57 GMT</pubDate>
      <guid>https://oksoft.antville.org/stories/2160677/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2013-05-13T15:39:57Z</dc:date>
    </item>
    <item>
      <title>shell script example</title>
      <link>https://oksoft.antville.org/stories/2044456/</link>
      <description>&lt;p&gt;An example of shell script.This will print numbers 0 to 500 in one line.&lt;/p&gt;&lt;p&gt;#!/bin/bashZ=0LIMIT=500while [ &amp;quot;$Z&amp;quot; -lt &amp;quot;$LIMIT&amp;quot; ]&lt;/p&gt;&lt;p&gt;doecho -n &amp;quot;$Z... &amp;quot;Z=$( expr $Z + 1 )doneechoexit 0&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;ping the address received from positional parameter&lt;/p&gt;&lt;p&gt;#!/bin/bash&lt;/p&gt;&lt;p&gt;if [ $# -eq 0 ]thenSITE=&amp;quot;google.com&amp;quot;elseSITE=&amp;quot;$1&amp;quot;fi&lt;/p&gt;&lt;p&gt;ping -c 2 $SITE &amp;gt; /dev/nullif [ $? != 0 ]thenecho $(date +%F) ... Network Failure!fi&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;Here is the script that will loop two thousand times and print the statement on the screen.&lt;/p&gt;&lt;p&gt;#!/bin/sh&lt;/p&gt;&lt;p&gt;MAX=2000i=1echo &amp;quot; truncate table t1;  &amp;quot;&lt;/p&gt;&lt;p&gt;while [ $i -le $MAX ]doecho &amp;quot; insert into t1(f1) values($i);  &amp;quot;i=&lt;code&gt;expr $i + 1&lt;/code&gt;done&lt;/p&gt;</description>
      <pubDate>Wed, 09 Feb 2011 04:46:25 GMT</pubDate>
      <guid>https://oksoft.antville.org/stories/2044456/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2011-02-09T04:46:25Z</dc:date>
    </item>
    <item>
      <title>Match Operator in AWK</title>
      <link>https://oksoft.antville.org/stories/2044455/</link>
      <description>&lt;p&gt;The match operator is the tilde “~” which will match an expression in a record or field. In this example awk is used to search for a  field, number 7, that matches “nologin”.&lt;/p&gt;&lt;p&gt;awk -F: '$7 ~ /nologin/' /etc/passwdbin:x:1:1:bin:/bin:/sbin/nologindaemon:x:2:2:daemon:/sbin:/sbin/nologinadm:x:3:4:adm:/var/adm:/sbin/nologin&lt;/p&gt;</description>
      <pubDate>Wed, 09 Feb 2011 04:40:36 GMT</pubDate>
      <guid>https://oksoft.antville.org/stories/2044455/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2011-02-09T04:40:36Z</dc:date>
    </item>
    <item>
      <title>Copy table</title>
      <link>https://oksoft.antville.org/stories/2037882/</link>
      <description>&lt;p&gt;#!/bin/shfor i in &lt;code&gt;find /var/lib/mysql/test/ -name &amp;quot;Table1.*&amp;quot;&lt;/code&gt;docp $i &lt;code&gt;dirname $i&lt;/code&gt;'/test'&lt;code&gt;basename $i&lt;/code&gt;done&lt;/p&gt;&lt;h1&gt;duplicate a table Table1 by coping the files if it is a MyISAM table.&lt;/h1&gt;</description>
      <pubDate>Tue, 28 Dec 2010 05:28:10 GMT</pubDate>
      <guid>https://oksoft.antville.org/stories/2037882/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2010-12-28T05:28:10Z</dc:date>
    </item>
    <item>
      <title>Brace Expansion</title>
      <link>https://oksoft.antville.org/stories/2001599/</link>
      <description>&lt;p&gt;Brace expansion is used to generate arbitrary strings. For e.g.ls mysql*.0000{1..3}&lt;/p&gt;&lt;p&gt;will list the files like mysql.00001 mysql.00002 &amp;amp; mysql.00003&lt;/p&gt;&lt;p&gt;This can also be used for something like this...&lt;/p&gt;&lt;p&gt;cp mysql.log{,.bak}&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;p&gt;cp mysql.log mysql.log.bak&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;cp $da.log{.bak,}&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;p&gt;cp 2010-05-28.log.bak 2010-05-28.log&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;</description>
      <pubDate>Sat, 12 Jun 2010 13:16:45 GMT</pubDate>
      <guid>https://oksoft.antville.org/stories/2001599/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2010-06-12T13:16:45Z</dc:date>
    </item>
    <item>
      <title>User input in shell script</title>
      <link>https://oksoft.antville.org/stories/1983505/</link>
      <description>&lt;p&gt;#!/bin/shunset REPLYuntil [[ $REPLY ]]; do read -p &amp;quot;Enter your name: &amp;quot;doneecho &amp;quot;welcome $REPLY&amp;quot;&lt;/p&gt;</description>
      <pubDate>Wed, 24 Mar 2010 12:09:33 GMT</pubDate>
      <guid>https://oksoft.antville.org/stories/1983505/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2010-03-24T12:09:33Z</dc:date>
    </item>
    <item>
      <title>Inernal File Separator</title>
      <link>https://oksoft.antville.org/stories/1952009/</link>
      <description>&lt;p&gt;The safe way to change IFS in a 'while read' loop is:&lt;/p&gt;&lt;p&gt;while IFS=| read a b cdo: whateverdone&lt;/p&gt;</description>
      <pubDate>Tue, 01 Dec 2009 11:37:01 GMT</pubDate>
      <guid>https://oksoft.antville.org/stories/1952009/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-12-01T11:37:01Z</dc:date>
    </item>
    <item>
      <title>valid date</title>
      <link>https://oksoft.antville.org/stories/1894573/</link>
      <description>&lt;p&gt;validdate.sh script will look like this...&lt;/p&gt;&lt;p&gt;#!/bin/shuserdate=$1date -d $userdate &amp;amp;&amp;gt; /dev/nullif [ $? -ne 0 ] ; thenecho You entered an invalid date, $userdateelseecho The date $userdate is validfi&lt;/p&gt;&lt;h1&gt;sh validdate.sh 2009-33-44&lt;/h1&gt;&lt;p&gt;You entered an invalid date, 2009-33-44&lt;/p&gt;</description>
      <pubDate>Mon, 13 Apr 2009 10:14:50 GMT</pubDate>
      <guid>https://oksoft.antville.org/stories/1894573/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-04-13T10:14:50Z</dc:date>
    </item>
    <item>
      <title>better code</title>
      <link>https://oksoft.antville.org/stories/1886329/</link>
      <description>&lt;p&gt;&lt;code&gt;test -s /var/log/mailme.txt&lt;/code&gt;if [[ $? -eq 0 ]] ; thenThe above 2 lines can be written in one line as shown below:&lt;/p&gt;&lt;p&gt;if [[ -z /var/log/mailme.txt ]]; then&lt;/p&gt;</description>
      <pubDate>Tue, 10 Mar 2009 12:45:27 GMT</pubDate>
      <guid>https://oksoft.antville.org/stories/1886329/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-03-10T12:45:27Z</dc:date>
    </item>
  </channel>
</rss>

