Is it possible in a while loop, on a small file, to save the current line to a variable and check if that variable is included in the next line, if so, delete the next line;
Something like:
while read p ; do
a gets value of p
if a included in next line of file, delete next line
done<file
So if we have the lines:
abc man
abc man 13e1312 22
abc 12345
dec asdasfa sadfasfa
dec 22
dec 2232
dec 22 das fss
It will print:
abc man
abc 12345
dec asdasfa sadfasfa
dec 22