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


More than 1 year has passed since last update.


1. 対象ファイルを検索

M-x find-name-dired
Find-name (directory): ~/path/ (対象ディレクトリを入力)
Find-name (filename wildcard): * (ファイル名の検索パターンを入力。この場合は全部選択)


2. 対象ファイルを選択

t (toggle-mark)を押して全て選択。

3. 置換

Q を押す。
Query replace regexp in marked files: foo (置換される文字列を入力)
Query replace regexp in marked files foo with: bar (置換する文字列を入力)


4. ファイルを保存

C-x s
! を押して全て保存。


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