projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0970599
)
removing snapshots from counts.
author
Chris Koeritz
<cak0l@virginia.edu>
Thu, 22 Jul 2021 13:44:39 +0000
(09:44 -0400)
committer
Chris Koeritz
<cak0l@virginia.edu>
Thu, 22 Jul 2021 13:44:39 +0000
(09:44 -0400)
scripts/files/fast_counter.sh
patch
|
blob
|
history
diff --git
a/scripts/files/fast_counter.sh
b/scripts/files/fast_counter.sh
index 6ab489902be7b7f69adbc0c71156e6cbb03f46a8..c85723e9cde64ec394e0f15b3b8d9ff756b81aa3 100644
(file)
--- a/
scripts/files/fast_counter.sh
+++ b/
scripts/files/fast_counter.sh
@@
-2,14
+2,15
@@
for dir in "${@}"; do
echo -n "files in '$dir':"
for dir in "${@}"; do
echo -n "files in '$dir':"
- /bin/ls -1fR "$dir" | grep -v "^$" | grep -v "^\.$" | grep -v "^\.\.$" | grep -v ".*:$" | wc -l
+ /bin/ls -1fR "$dir" | grep -v "^$" | grep -v "^\.$" | grep -v "^\.\.$" | grep -v ".*:$" |
grep -v "\.snapshot" |
wc -l
# patterns that remove files from being counted, above:
#
# patterns that remove files from being counted, above:
#
- # ^$ -- all blank lines
- # ^\.$ -- all lines with just a dot (current directory)
- # ^\.\.$ -- all lines with just two dots (parent directory)
- # .*:$ -- all lines that end with a colon (directory heading from recursive ls)
+ # ^$ -- all blank lines
+ # ^\.$ -- all lines with just a dot (current directory)
+ # ^\.\.$ -- all lines with just two dots (parent directory)
+ # .*:$ -- all lines that end with a colon (directory heading from recursive ls)
+ # \.snapshot -- all lines mentioning the snapshot directory.
done
done