Last active
June 4, 2024 21:00
-
-
Save ogaida/fef64ce64d20b7af635af280005c0559 to your computer and use it in GitHub Desktop.
fzf mail.log
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
function fzf_maillog(){ | |
logfile=$1 | |
cat ${logfile}|fzf -i -e --preview="grep -F \$(awk '{print \$6}' {+f}) ${logfile}" --preview-window=up:50%:wrap -m --bind ctrl-t:toggle-all | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good filters: