shell/sed进阶/给文件中的行编号.sh

4 lines
45 B
Bash
Raw Normal View History

2016-05-23 08:32:00 +08:00
#!/bin/bash
sed '=' test | sed 'N; s/\n/ /'