Created
February 12, 2023 11:05
-
-
Save mthri/06ca98ed24654e745c5800a03b542df9 to your computer and use it in GitHub Desktop.
bash command combination for make life easier
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
# 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