Skip to content

Commit 96cfc49

Browse files
committed
update documents
1 parent 255a8db commit 96cfc49

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/oldratlee/useful-scripts/m
4141

4242
1. [console-text-color-themes.sh](docs/shell.md#beer-console-text-color-themessh)
4343
显示`Terminator`的全部文字彩色组合的效果及其打印方式。
44-
1. [colorful-lines](docs/shell.md#beer-colorful-lines)
44+
1. [colines](docs/shell.md#beer-colines)
4545
彩色`cat`出文件行,方便人眼区分不同的行。
4646
1. [echo-args.sh](docs/shell.md#beer-echo-argssh)
4747
输出脚本收到的参数,在控制台运行时,把参数值括起的括号显示成 **红色**,方便人眼查看。用于调试脚本参数输入。

docs/shell.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,31 @@ colorEchoWithoutNewLine "4;33;40" "Hello world!" "Hello Hell!"
3333

3434
- [utensil](https://github.com/utensil)[在Bash下输出彩色的文本](http://utensil.github.io/tech/2007/09/10/colorful-bash.html),这是篇很有信息量很钻研的文章!
3535

36-
:beer: [colorful-lines](../colorful-lines)
36+
:beer: [colines](../colines)
3737
----------------------
3838

3939
彩色`cat`出文件行,方便人眼区分不同的行。
4040

4141
### 示例
4242

4343
```bash
44-
$ echo a | colorful-lines
44+
$ echo a | colines
4545
a
46-
$ echo -e 'a\nb' | colorful-lines
46+
$ echo -e 'a\nb' | colines
4747
a
4848
b
49-
$ echo -e 'a\nb' | nl | colorful-lines
49+
$ echo -e 'a\nb' | nl | colines
5050
1 a
5151
2 b
52-
$ colorful-lines file1 file2
53-
==== file1 ====
52+
$ colines file1 file2.txt
53+
================================================================================
54+
file1
55+
================================================================================
5456
file1 line1
5557
file1 line2
56-
==== file2 ====
58+
================================================================================
59+
file2.txt
60+
================================================================================
5761
file2 line1
5862
file2 line2
5963
```

0 commit comments

Comments
 (0)