forked from colonelpanic/dotfiles
[NixOS] Add functions autoload
This commit is contained in:
8
dotfiles/lib/functions/get_cols
Executable file
8
dotfiles/lib/functions/get_cols
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
function get_cols {
|
||||
FS="${FS:- }"
|
||||
gawk -f "$HOME/.lib/get_cols.awk" -v "cols=$*" -v "FS=$FS"
|
||||
}
|
||||
|
||||
get_cols "$@"
|
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env gawk -f
|
||||
|
||||
BEGIN {
|
||||
column_count=split(cols,column_numbers," ");
|
||||
}
|
||||
|
Reference in New Issue
Block a user