Skip to content

Instantly share code, notes, and snippets.

@naaman
Created March 30, 2015 21:04
Show Gist options
  • Save naaman/27456f37f949c45ca981 to your computer and use it in GitHub Desktop.
Save naaman/27456f37f949c45ca981 to your computer and use it in GitHub Desktop.
Tail a Pipe Using Less
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