linux-tutorial/codes/shell/示例脚本/查找替换文本/sed/给文件中的行编号.sh
2019-05-10 11:17:57 +08:00

4 lines
45 B
Bash

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