I want to delete some repeated lines in multiple .text files I need to analyze each file independently, since they are not related to each other using:
awk '!seen[$0]' file.txt file.out
But when I try:
for f in *.txt; do awk 'seen![$0]' $f $f.out; done
I get an error:
The file '$f' cannot be opened.
Awk or '! Seen [$ 0]' is not recognized
Sometimes I get an output file but it's the same file ....