mirror of
https://github.com/eddyem/canon-lens.git
synced 2025-12-06 02:25:15 +03:00
10 lines
195 B
Bash
10 lines
195 B
Bash
#!/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
|