projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ce3769
)
fixed case for zero files in a dir.
author
Chris Koeritz
<fred@gruntose.com>
Mon, 5 Sep 2016 18:26:21 +0000
(14:26 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Mon, 5 Sep 2016 18:26:21 +0000
(14:26 -0400)
scripts/files/count_files.sh
patch
|
blob
|
history
diff --git
a/scripts/files/count_files.sh
b/scripts/files/count_files.sh
index 3934e0fb566ba6d03c4988319c83e24898823040..b70d75f2d8229b378dec2f64edaa24230f8bf1a4 100644
(file)
--- a/
scripts/files/count_files.sh
+++ b/
scripts/files/count_files.sh
@@
-25,6
+25,6
@@
done |
# eat the zeroes but keep the tabular look (i.e. replace each leading zero
# with a space). had to do it as cases, since this seems like context-
# sensitive matching, which sed will not do, i think).
- sed -e 's/^000000/
/' -e 's/^00000/ /' -e 's/^0000/ /' \
+ sed -e 's/^000000/
0
/' -e 's/^00000/ /' -e 's/^0000/ /' \
-e 's/^000/ /' -e 's/^00/ /' -e 's/^0/ /'