Created
April 26, 2017 13:34
-
-
Save jonatanblue/df0c82936bd5536300999b5a67d31644 to your computer and use it in GitHub Desktop.
sed or grep a stream
This file contains 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
# grep | |
tail -f file | grep --line-buffered my_pattern | |
# sed | |
stdbuf -o0 tail -f /var/log/syslog | sed 's/Dec/LOOL/' | |
# credits: | |
# Thanks to @amblina for collecting these. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment