<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.benhall.com/doku/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.benhall.com/doku/feed.php">
        <title>..., etc. unix:bash</title>
        <description></description>
        <link>http://www.benhall.com/doku/</link>
        <image rdf:resource="http://www.benhall.com/doku/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-04-30T17:48:16-04:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.benhall.com/doku/doku.php?id=unix:bash:rss&amp;rev=1300222900&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.benhall.com/doku/doku.php?id=unix:bash:simple_arithmetic&amp;rev=1266845444&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.benhall.com/doku/lib/tpl/dokuwiki/images/favicon.ico">
        <title>..., etc.</title>
        <link>http://www.benhall.com/doku/</link>
        <url>http://www.benhall.com/doku/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="http://www.benhall.com/doku/doku.php?id=unix:bash:rss&amp;rev=1300222900&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-03-15T17:01:40-04:00</dc:date>
        <title>unix:bash:rss</title>
        <link>http://www.benhall.com/doku/doku.php?id=unix:bash:rss&amp;rev=1300222900&amp;do=diff</link>
        <description>Code example for XML read with bash from &lt;http://stackoverflow.com/questions/893585/how-to-parse-xml-in-bash&gt;


filter='(720p|epack|&quot;Month of&quot;\)'

rdom () { local IFS=\&gt; ; read -d \&lt; E C ;}

while rdom; do
   if [[ $E = title ]]; then
        echo $C #|egrep -v $filter
        echo $C |egrep -v $filter
   fi
done &lt; tmp.txt</description>
    </item>
    <item rdf:about="http://www.benhall.com/doku/doku.php?id=unix:bash:simple_arithmetic&amp;rev=1266845444&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-02-22T08:30:44-04:00</dc:date>
        <title>unix:bash:simple_arithmetic</title>
        <link>http://www.benhall.com/doku/doku.php?id=unix:bash:simple_arithmetic&amp;rev=1266845444&amp;do=diff</link>
        <description>Add file sizes together from a list returned via Find


IFS=$'\n';set j=0;for i in $(du -s $(find ./ -name \*.MOV)|cut -f 1);do j=$(( $i + j ));echo $j;done;IFS=$' \t\n'


This seems to keep growing after multiple runs, so something is odd.

Better:</description>
    </item>
</rdf:RDF>
