How to fix an openstack drive stuck on deleting.
Grep a file for everything but a word
To exclude a single word:
the following will print everything but lines containing "excludedword"
grep -v excludedword
The following is a working example of pipeing to grep and exluding each line with the ip address 220.127.116.11:
sudo tcpdump | grep -v 18.104.22.168
To Exclude multiple words:
grep -v -e word1 -e word2
Piping to grep example:
sudo tcpdump | grep -v -e 22.214.171.124 -e 126.96.36.199
or on a text file:
grep -v -e 188.8.131.52 -e 184.108.40.206 iplist.txt