SadServer Solutions - Santiago

Solution for: https://sadservers.com/scenario/santiago

We have 3 files, each contains word "Alice". To count how many there is lines with word Alice


grep Alice *.txt | wc -l

After that we could find file with only once with:


grep Alice *.txt | cut  -d ":" -f 1 | sort | uniq -c | sort -r

SadServer solution


Author: Vladimir Cicovic

Author: Vladimir Cicovic