forked from colonelpanic/dotfiles
[shell] Add all_after_char function
This commit is contained in:
parent
57e1a9e4b0
commit
26a6305945
@ -471,3 +471,9 @@ function all_lines_after {
|
||||
function list_interfaces {
|
||||
ip link show | grep -vE '^ ' | get_cols -F ':' 2 | xargs -n 1
|
||||
}
|
||||
|
||||
function all_after_char {
|
||||
while read -r line; do
|
||||
echo ${line##*$1}
|
||||
done;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user