I have a master file with more than 50000 lines and I need to remove around 20000 lines from actual file, for this I used
grep -vE command which is showing an error as too many arguments.
sed command to remove those using for loop. But it is taking so much time to remove as 20000
sed commands are going to initialize.
for i in `cat 20000-words.txt`; do sed -i -e "/$i/ d" 50000-lines.txt done