跳过指定行并输入行号
lsof -i:6379|awk 'NR>1{print NR,$1,"|",$2}'
输入分隔符
awk '{print $1,"|",$2}'
相关信息
打印输出如果需要指定分隔符,可进行拼接
跳过指定行
awk 'NR>1{print $1}' test.txt
原创2022/7/12大约 3 分钟
lsof -i:6379|awk 'NR>1{print NR,$1,"|",$2}'
awk '{print $1,"|",$2}'
相关信息
打印输出如果需要指定分隔符,可进行拼接
awk 'NR>1{print $1}' test.txt