forked from colonelpanic/dotfiles
Add filter_by_column_value shell function
This commit is contained in:
parent
a4ec8f17d1
commit
b107581b2f
@ -108,6 +108,10 @@ function get_cols() {
|
|||||||
awk -f "$HOME/.lib/get_cols.awk" -v "cols=$*" -v "FS=$FS"
|
awk -f "$HOME/.lib/get_cols.awk" -v "cols=$*" -v "FS=$FS"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function filter_by_column_value {
|
||||||
|
awk '$'"$1"' == '"$2"' { print $0 }'
|
||||||
|
}
|
||||||
|
|
||||||
function find_all_ssh_agent_sockets() {
|
function find_all_ssh_agent_sockets() {
|
||||||
find /tmp -type s -name agent.\* 2> /dev/null | grep '/tmp/ssh-.*/agent.*'
|
find /tmp -type s -name agent.\* 2> /dev/null | grep '/tmp/ssh-.*/agent.*'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user