thierry@toto-PC:~/bin> cat fichier_test
une ligne toto
une ligne tata
une ligne toto
une autre ligne toto
et encore une autre:
toto.
thierry@toto-PC:~/bin> sed -n '/toto/p' fichier_test
une ligne toto
une ligne toto
une autre ligne toto
toto.
thierry@toto-PC:~/bin> grep toto fichier_test
une ligne toto
une ligne toto
une autre ligne toto
toto.
thierry@toto-PC:~/bin> sed -n '/toto/!p' fichier_test
une ligne tata
et encore une autre:
thierry@toto-PC:~/bin> grep -v toto fichier_test
une ligne tata
et encore une autre: