glocate (296B)
1 #!/bin/bash 2 3 FILE="/home/files" 4 5 # http://stackoverflow.com/a/10836225 6 ARGS=$(printf " %q" "$@") 7 8 # grep is slower with other locales, especially -i, so LC_ALL 9 # use --line-buffered so it's easier to grep the output of this 10 /usr/bin/parallel -i \ 11 bash -c "LC_ALL=C grep $ARGS {}" -- ${FILE}.* 12