Here is another problem with the following script
find . \( -iname '*.txt' -o -iname '*.csv' \) -exec bash -c '
for f; do
IFS=/ read -ra part <<< "$f"
printf "%-10.10s %-10.10s %-20.20s %5d\n" \
"${part[1]}" "${part[2]}" "${part[3]}" "$(wc -l < "$f")"
done
' _ {} +
_: -c: line 0: unexpected EOF while looking for matching `"'
_: -c: line 1: syntax error: unexpected end of file
--
View this message in context:
http://gnu-bash.2382.n7.nabble.com/count-tp16675p16702.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.