Skip to content

Commit

Permalink
adding bar.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
304GEEK committed Jan 18, 2013
1 parent 7e651ac commit 28c50c5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bar.sh
@@ -0,0 +1,14 @@
#/bin/bash
#
# borrowed from http://novemberochtend.blogspot.com/2008/12/poor-mans-bar-graph-in-bash.html
#
# Thanks Ger-Jan
#
for i in `seq $1`
do
if [ `expr $i % $2` -eq 0 ]
then
echo -n "|"
fi
done
echo " $1"

0 comments on commit 28c50c5

Please sign in to comment.