質問編集履歴

2

正規表現のタグを追加させていただきました。

2017/10/12 04:16

投稿

tomomo
tomomo

スコア430

test CHANGED
File without changes
test CHANGED
File without changes

1

コマンドを修正させてもらいました。いろいろ削って試してみましたが、置換条件の<\?xml (.)+ に引っかかってないようで、書き方を指摘していただけるとありがたいです。

2017/10/12 04:16

投稿

tomomo
tomomo

スコア430

test CHANGED
File without changes
test CHANGED
@@ -5,6 +5,14 @@
5
5
  ```bash
6
6
 
7
7
  find ${work_dir} -type f -name "*.html" | xarg sed -i 's/<?xml (.)+\n>//g'
8
+
9
+
10
+
11
+ ↓(誤りを修正)
12
+
13
+
14
+
15
+ find ${work_dir} -type f -name "*.html" | xarg sed -i 's/<?xml (.)+\n//g'
8
16
 
9
17
  ```
10
18