특정한 문자가 들어 있는 파일들만을 찾아서 해당 문자 행을 몽땅 삭제하기


grep -l -i “kind: pod” * | xargs sed -i ‘/kind/d’

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s