I have 2 files, contains only rows. I would like to remove files from left.txt beginning lines from found.txt (separator
My command was:
cut -d: -f1 found.txt | grep -vf- left.txt > remain.txt
But it doesn't work (remain.txt is an empty file). Is it a syntax error? I could not find the solution.
Could you help me, please?
found.txt contains:
00305aa421cda76cc07228111a5650a8:test1
011bbcf1eb8f65e326ebdc4f9e349c94:test2
0127f1eeffb32ed2d6001c0a3ce365f1:test3
left.txt:
4a37a393387cfef1dc8d8ee82c763003
8f55b05e6f40e6f2fb38f1a76308df64
6a8eba4925beeaf2ffa5e498f0f22c35
ae067c5c1b846ff420d94462421197c5
8d03eb07d810d9f486ca82ce2b2df106
00305aa421cda76cc07228111a5650a8
011bbcf1eb8f65e326ebdc4f9e349c94
0127f1eeffb32ed2d6001c0a3ce365f1