mirror of
https://github.com/eddyem/canon-lens.git
synced 2026-03-22 01:30:58 +03:00
new data
This commit is contained in:
9
00-logs/find_cmd
Executable file
9
00-logs/find_cmd
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# find in which file of all *dat exists command $1
|
||||
|
||||
for f in *.dat; do
|
||||
N=$(awk '{print $2}' $f | grep "$1" | wc -l)
|
||||
if [ "$N" -ne 0 ]; then
|
||||
printf "%-22s%d\n" $f $N
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user