Created
March 30, 2015 21:04
-
-
Save naaman/27456f37f949c45ca981 to your computer and use it in GitHub Desktop.
Tail a Pipe Using Less
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
less_tail() { | |
tmp_file=`mktemp -t lesstail` | |
$@ > $tmp_file & | |
less +F $tmp_file | |
kill % | |
rm $tmp_file | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment