I have two text files, and I want to read file1 line by line, searching for the same line in file2 and removing it from file2.
I have the pseudocode of:
for line in file1.txt
do
sed search line and delete in file2.txt
done
bashcommand linetext processing
I have two text files, and I want to read file1 line by line, searching for the same line in file2 and removing it from file2.
I have the pseudocode of:
for line in file1.txt
do
sed search line and delete in file2.txt
done
Best Answer
You could accomplish this with grep.
Here is an example: