local/bin/dataindex: Echo processed folder
parent
c303b90aad
commit
a0ba1c91e1
|
@ -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 | \
|
||||
|
|
Loading…
Reference in New Issue