입력 파일에 3000 줄이 있습니다.특정 패턴으로 시작하는 파일의 모든 줄을 제거하고 싶습니다.
system="This is nice"
system="Add some crazy word"
system="Some crazy word"
system="Add another pattern"
system="The parek went home"
system="Add Ola phradse"
system="The car is nice"
I 시스템 후 추가 단어가 모든 라인을 제거 할 = "
그래서 입력 파일 당신은 터미널에서 sed하여이 작업을 수행 할 수
system="This is nice"
system="Some crazy word"
system="The parek went home"
system="The car is nice"
https://stackoverflow.com/questions/17208931/bash-remove-all-lines-beginning-with-p SED '/^시스템 = "추가/D'file.txt를> new.txt 이것은 당신의 문제를 해결해야합니다 – user238607