sed delete line

You can delete line in text by sed on linux.

I will show you how to delete line by sed on linux.

Look at the text contents file below.
apple
banana
pineapple
melon
watermelon

I am going to delete what containing keyword line 'apple' like below result.
banana
melon
watermelon

you can use the following command.

sed '/apple/d' fruits.txt

댓글 없음:

댓글 쓰기