<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'progress_bar.sh'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Thu, 16 Apr 2026 17:53:35 +0000</lastBuildDate>
    <item>
      <title>ksaver said on 22/Aug/2010</title>
      <link>https://snipplr.com/view/39391/progressbarsh</link>
      <description>&lt;p&gt;#! /usr/bin/env bash&#13;
# a simple timer example.&#13;
&#13;
function timer()&#13;
{&#13;
    source progress_bar.sh&#13;
    LIMIT=300  #5 mins.&#13;
    COUNT=0&#13;
    while [ $COUNT -lt $LIMIT ]&#13;
    do&#13;
        echo $(($COUNT*100/$LIMIT)) #%percent&#13;
        let COUNT=$COUNT+1&#13;
        sleep 1&#13;
    done | progress_bar&#13;
    return $?&#13;
}&#13;
&#13;
timer&lt;/p&gt;</description>
      <pubDate>Sun, 22 Aug 2010 16:43:56 UTC</pubDate>
      <guid>https://snipplr.com/view/39391/progressbarsh</guid>
    </item>
    <item>
      <title>ksaver said on 22/Aug/2010</title>
      <link>https://snipplr.com/view/39391/progressbarsh</link>
      <description>&lt;p&gt;Example of usage: Simple Timer: http://pastebin.com/TU5evdHx&lt;/p&gt;</description>
      <pubDate>Sun, 22 Aug 2010 16:55:52 UTC</pubDate>
      <guid>https://snipplr.com/view/39391/progressbarsh</guid>
    </item>
  </channel>
</rss>
