且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在shell脚本中缩进多行输出

更新时间:2023-12-04 11:39:16

将其放在sed处,以便在每行的开头插入2个空格.

Pipe it to sed to insert 2 spaces at the beginning of each line.

git status | sed 's/^/  /'