You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Remove unnecessary calls to awk
Describe the solution you'd like
% col_n () {
[[ -n $ZSH_VERSION ]] && setopt local_options sh_word_split
local col=$1
local IFS=$' \t'
while read -r line; do
set $line # Spilt by IFS and set into $1, $2, ...
printf "%s\n" "${@:$col:1}"
done;
}
% echo "one two three" | col_n 2
two
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Remove unnecessary calls to
awk
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: