Shell script remove line in text file that including charactor "i"

trazodone
trazodone used Ask the Experts™
on
Hello Experts,

I have text file look like this

##########################
0785868698
0785884026
0786010832
0786301044
0786319994
0786492819
0786668733
0786765147
0786962116
0787789104
0787999007
0787999099
0788193983
0788679362
0788755966
0788786195
0788893431
0789356031
0789399461
110001, id
dentificat
entificati
ificationN
ntificatio
tification
#######################

I would like to use shell script / awk / sed to remove line which including charactor "i"

Please see attachment.

Thank you.
MTN-MSISDN-list-Abillity-error-u.txt
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Security Analyst Senior
Commented:
Simple.

sed "/i/d" test.txt > result.txt

Just tested it..  Works great.

HTH,

Kent

Author

Commented:
Thank you.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial