Delete a line including a word in a file using sed in Linux

If you want to delete a line including 'Fast' in a file 'abc.txt', do this

>> sed /Fast/d abc.txt

Below is example.

>> cat abc.txt
abc
abc
abc
abc
Fast
abc

>> sed /Fast/d abc.txt
abc
abc
abc
abc
abc


Thanks,

JF

댓글

이 블로그의 인기 게시물

미국 포닥, 한국으로 돌아가는 이유? (Why do postdoc go back to Korea?)

미국 포닥 - 비지팅 포닥 VS 풀펀딩 포닥 (Visiting Scholar VS Postdoctoral Fellow)

미국 포닥 직위, 타이틀, 명칭? - Visiting Scholar, Postdoctoral Fellow, Research Associate, Research Scientist, Research Professor