回答編集履歴
1
Update
test
CHANGED
@@ -3,3 +3,17 @@
|
|
3
3
|
$ sed -E -e 's/^(APPLE_JUICE=)(.*)$/\10/' hoge.txt
|
4
4
|
|
5
5
|
```
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
**追記**
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
Awk の場合
|
14
|
+
|
15
|
+
```sh
|
16
|
+
|
17
|
+
$ awk -F= -vOFS== '/^APPLE_JUICE=/{$2=0}{print}' hoge.txt
|
18
|
+
|
19
|
+
```
|