4 ms·
Can you elaborate? Do you prefix the find line there eith a backtick? It looks robust, and I am interested in using this technique
by unixhero 3y ago
Can you elaborate?
Do you prefix the find line there eith a backtick?
It looks robust, and I am interested in using this technique
- metadat 3y agoHere are a few examples of how I safely traverse filesystem contents in bash: find . -print0 | xargs -0 -n1 ./sub_script.sh find . -mindepth 1 -maxdepth 1 -name '*some*pattern' -print0 \ | xargs -0 -n1 -I{} /usr/bin/env bash -c \ 'printf "%s" "$*"' _ {}