diff --git a/dotfiles/lib/shellenv/functions.sh b/dotfiles/lib/shellenv/functions.sh index a5f582c5..22a5c814 100644 --- a/dotfiles/lib/shellenv/functions.sh +++ b/dotfiles/lib/shellenv/functions.sh @@ -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; +}