Skip to content

Instantly share code, notes, and snippets.

@mthri
Created February 12, 2023 11:05
Show Gist options
  • Save mthri/06ca98ed24654e745c5800a03b542df9 to your computer and use it in GitHub Desktop.
Save mthri/06ca98ed24654e745c5800a03b542df9 to your computer and use it in GitHub Desktop.
bash command combination for make life easier
# search some word in all log file in current directory
ls | cut -d " " -f2 | xargs grep "WORD"
# see live last log in current directory
ls -ltrh | rev | cut -d' ' -f 1 | rev | tail -n1 | xargs tail -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment