Help us understand the problem. What is going on with this article?

UNIX

More than 1 year has passed since last update.

入力ミスした時

Ctrl + c

sed

削除

sed -e 1(削除したい行番号)d file_name

文字の置換

sed -e 's/A/B/g' file_name

連続置換

sed -e 's/A/B/g' -e 's/A/C/g' file_name

「.」を置換したい時

sed -e 's/\.../0/g' file_name
ct-7
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away