3 Matching Annotations
- Feb 2024
-
unix.stackexchange.com unix.stackexchange.com
-
#!/bin/sh if [ "$#" -eq 0 ]; then set -- /dev/stdin fi for pathname do gawk -f awk_prac.awk "$pathname" done
-
-
stackoverflow.com stackoverflow.com
-
Do not pass arguments right into subshell, it's as unsafe as eval.
-
- May 2020
-
stackoverflow.com stackoverflow.com
-
I have used this bash one-liner before set -- "${@:1:$(($#-1))}" It sets the argument list to the current argument list, less the last argument.
Analogue of
shift
built-in. Too bad there isn't just apop
built-in.
-