Skip to content

Instantly share code, notes, and snippets.

@cswingler
Created February 17, 2016 16:03
Show Gist options
  • Save cswingler/6d3c06dcae839efbdc69 to your computer and use it in GitHub Desktop.
Save cswingler/6d3c06dcae839efbdc69 to your computer and use it in GitHub Desktop.
#!/bin/bash
# a dumb shell script
echo "i'm a little shell script"
echo "short and stout"
echo "i'm not going to read stdin, this is stdout"
echo "when you invoke me, here me shout:"
echo "here's my environment"
env
set
echo "and now i'm just going to count"
count=0
while [ true ]
do
sleep 1
echo $count
((count++))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment