when i try to remove consecutive duplicate lines with
awk "!x[$0]++" file
its reporting x[: Event not found.
even the same case with
sed -i -e "$!N; /^\(.*\)\n\1$/!P;D" file , telling
N: Event not found. I also tried with single quotes, this did not help
Any idea to fix these
unix shell awk tcsh sed
user1228191
source share