Tag Info

New answers tagged


A POSIX shell has a single array: the positional parameters ($1, $2, …), collectively accessed as "$@", and set with the set -- builtin. More precisely, there is one array per function instance on the current call stack, but only the array of positional parameters of the currrent function (or of the script, if outside any function) is accessible at any ...


With grep would you not want to make use of the -f or -F switches that grep offers? From the grep man page: -F, --fixed-strings Interpret PATTERN as a list of fixed strings, separated by newlines, any of which is to be matched. (-F is specified by POSIX.) -f FILE, --file=FILE Obtain patterns from FILE, one per line. ...

Top 50 recent answers are included