File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -985,12 +985,16 @@ you
985985is
986986at
987987
988- $ awk -v IGNORECASE=1 ' NR==FNR{s[$0 ]; next} {for(k in s){if($0 ~ k && ++s[k]==(ARGC-2))
989- print k}}' search_terms.txt jumbled.txt mixed_fs.txt secrets.txt table.txt
988+ $ awk -v IGNORECASE=1 ' NR==FNR{s[$0 ]; next} {for(k in s) if($0 ~ k) a[k]}
989+ ENDFILE{for(k in a) s[k]++; delete a}
990+ END{for(k in s) if(s[k]==(ARGC-2)) print k}
991+ ' search_terms.txt jumbled.txt mixed_fs.txt secrets.txt table.txt
990992at
991993row
992- $ awk -v IGNORECASE=1 ' NR==FNR{s[$0 ]; next} {for(k in s){if($0 ~ k && ++s[k]==(ARGC-2))
993- print k}}' search_terms.txt addr.txt sample.txt
994+ $ awk -v IGNORECASE=1 ' NR==FNR{s[$0 ]; next} {for(k in s) if($0 ~ k) a[k]}
995+ ENDFILE{for(k in a) s[k]++; delete a}
996+ END{for(k in s) if(s[k]==(ARGC-2)) print k}
997+ ' search_terms.txt addr.txt sample.txt
994998is
995999you
9961000hello
You can’t perform that action at this time.
0 commit comments