回答編集履歴
1
追記
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
```
|
9
|
+
```sh
|
10
10
|
|
11
11
|
#!/bin/bash
|
12
12
|
|
@@ -25,3 +25,15 @@
|
|
25
25
|
logger -- "`cat /tmp/test.txt`"
|
26
26
|
|
27
27
|
```
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
1行で書くと、
|
32
|
+
|
33
|
+
```sh
|
34
|
+
|
35
|
+
#!/bin/sh
|
36
|
+
|
37
|
+
logger -- "`sed 's/^/--> /' demo.txt | tr '\n' ' '`"
|
38
|
+
|
39
|
+
```
|