Structual bashrc
This commit is contained in:
13
bash/bashrc/sources/60_diagnostics
Executable file
13
bash/bashrc/sources/60_diagnostics
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
function catlog () {
|
||||
if [[ -z "$1" ]]; then
|
||||
__func_head "FILE"
|
||||
echo " Will exclude:"
|
||||
cat ~/.settings/checklog_exclude | awk '{ print " "$1 }'
|
||||
echo
|
||||
else
|
||||
EXCLUDE=$(awk '{ printf("(%s)|", $1) }' ~/.settings/checklog_exclude | sed 's/|$//')
|
||||
egrep -v $EXCLUDE $1
|
||||
fi
|
||||
}
|
Reference in New Issue
Block a user