Project

General

Profile

action #138032 » check.sh

script with ripgrep :D - osukup, 2024-01-17 11:00

 
#!/bin/bash
#

rgg () {
# needs ripgrep with pcre2
rg --engine pcre2 --stats "(?<!_)${1}" ${2} ||:

}

for path in ./ os-autoinst-distri-opensuse ;do
while read -r line;
do
echo "${path} - ${line} : $(rgg ${line} ${path} | tail -8 | head -n1)"
done < ../fun.txt
done
(1-1/2)