shell sed 打印输出指定行的内容
作者:互联网
code
macname@localhost Desktop % cat a.txt 1dededede 2dedefrfr 3frhvfvfvf 4frfrdede 5frfrfrfrf 6frfrede 7jukitttt 8csxssss 9zaxss 10swwww 11ssssss 12aaaaa macname@localhost Desktop % macname@localhost Desktop % macname@localhost Desktop % sed -n '2p' a.txt 2dedefrfr macname@localhost Desktop %
标签:shell,打印输出,2dedefrfr,macname,sed,txt,Desktop,localhost 来源: https://www.cnblogs.com/sea-stream/p/14038525.html