Skip to content

Instantly share code, notes, and snippets.

@spion
Created August 20, 2012 22:41
Show Gist options
  • Save spion/3408736 to your computer and use it in GitHub Desktop.
Save spion/3408736 to your computer and use it in GitHub Desktop.
Prepare a regular text file for feedtriplie
read line;
i=1
maxempty=50
empty=0
while [ "1" ]
do
if [ "$line" ]
then
echo :: $i blah blah : $line
empty=0
else
empty=$(($empty + 1))
if [ $empty -gt $maxempty ]
then
break;
fi
fi
read line
i=$(($i + 1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment