find . -type f -print0 | xargs -0 wc -l | awk '$1==1{print $2}'...an alternate version:
find . -type f -exec sh -c '[ 1 -eq $(wc -l {}|cut -d" " -f1) ] && echo {}' \;
Helpful bits and bytes
find . -type f -print0 | xargs -0 wc -l | awk '$1==1{print $2}'...an alternate version:
find . -type f -exec sh -c '[ 1 -eq $(wc -l {}|cut -d" " -f1) ] && echo {}' \;
No comments:
Post a Comment