Skip to content

Commit 7779200

Browse files
committed
improve docs of coat
1 parent 9ff0436 commit 7779200

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

coat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# cat lines colorfully. coat means *CO*lorful c*AT*.
44
#
55
# @Usage
6-
# $ echo -n 'Hello\nWorld' | coat
6+
# $ echo -e 'Hello\nWorld' | coat
77
# $ coat /path/to/file1
88
# $ coat /path/to/file1 /path/to/file2
99
#

docs/shell.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ Options:
116116
### 示例
117117
118118
```bash
119-
$ echo a | coat
120-
a
121-
$ echo -e 'a\nb' | coat
122-
a
123-
b
124-
$ echo -e 'a\nb' | nl | coat
125-
1 a
126-
2 b
119+
$ echo Hello world | coat
120+
Hello world
121+
$ echo -e 'Hello\nWorld' | coat
122+
Hello
123+
World
124+
$ echo -e 'Hello\nWorld' | nl | coat
125+
1 Hello
126+
2 World
127127
$ coat file1 file2.txt
128128
line1 of file1
129129
line2 of file1

0 commit comments

Comments
 (0)