Skip to content

Instantly share code, notes, and snippets.

@logosity
logosity / tail.sh
Created May 9, 2012 20:33
Tail Recursion in bash
#!/bin/bash
# warning you need to build in something to stop the loop
# in practice, I used a kill file check before invoking the script again
echo 'tail recursive bash ftw'
sleep 10
$0 &
# if you didn't listen and ran this as-is, try:
# killall tail.sh