26
rated 0 times
[
26]
[
0]
/ answers: 1 / hits: 66318
/ 2 Years ago, fri, december 3, 2021, 5:37:01
I have a find looking like this:
rm -f crush-all.js
find . -type f ( -name "*.js" ! -name "*-min*" ! -name "*console*" ) | while read line
do
cat "$line" >> crush-all.js
echo >> crush-all.js
done
I'd like to add to exclude a directory called "test" in the find but I can't seem to figure out how to add "-type d" somehow. How'd I go about doing that?
Thanks!
More From » find