local/bin/dataindex: Echo processed folder

master
Pierre Neidhardt 2019-01-23 11:29:24 +01:00
parent c303b90aad
commit a0ba1c91e1
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ for i ; do
## 'LC_ALL=C sort' is required to make sure to output is consistent across
## different systems.
echo >&2 "$i"
## The two following lines do the same for the same time cost. The former is shorter.
# find "$i" -type f | awk -v str="$i" '{l=length(str)+2; print substr($0, l)}' | LC_ALL=C sort > "$OUTPUT"
(cd -- "$i" && find . \( -path '*.git*' -o -path '*.svn*' -o -path '*.hg*' \) -prune -o -type f) | sed 's/^.\///' | LC_ALL=C sort | \