linux-tutorial/codes/shell/查找替换文本/sed/给文件中的行编号.sh
2019-10-29 18:22:19 +08:00

4 lines
53 B
Bash

#!/usr/bin/env bash
sed '=' test | sed 'N; s/\n/ /'