Skip to content

Instantly share code, notes, and snippets.

@necenzurat
Created January 6, 2019 11:31
Show Gist options
  • Save necenzurat/41b3e2544b9e6d35ca09d3414a3808fd to your computer and use it in GitHub Desktop.
Save necenzurat/41b3e2544b9e6d35ca09d3414a3808fd to your computer and use it in GitHub Desktop.
limit file to 1000 rows
echo "$(tail -1000 /tmp/cron.log)" > /tmp/cron.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment