File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/oldratlee/useful-scripts/m
4141
42421 . [ 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 ` 出文件行,方便人眼区分不同的行。
46461 . [ echo-args.sh] ( docs/shell.md#beer-echo-argssh )
4747 输出脚本收到的参数,在控制台运行时,把参数值括起的括号显示成 ** 红色** ,方便人眼查看。用于调试脚本参数输入。
Original file line number Diff line number Diff 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
4545a
46- $ echo -e ' a\nb' | colorful-lines
46+ $ echo -e ' a\nb' | colines
4747a
4848b
49- $ echo -e ' a\nb' | nl | colorful-lines
49+ $ echo -e ' a\nb' | nl | colines
50501 a
51512 b
52- $ colorful-lines file1 file2
53- ==== file1 ====
52+ $ colines file1 file2.txt
53+ ================================================================================
54+ file1
55+ ================================================================================
5456file1 line1
5557file1 line2
56- ==== file2 ====
58+ ================================================================================
59+ file2.txt
60+ ================================================================================
5761file2 line1
5862file2 line2
5963```
You can’t perform that action at this time.
0 commit comments