[root@localhost add]# cat file 
1 3 4 5
7 8 9
[root@localhost add]# cat file|awk '{for(i=1;i<=NF;i++){$i+=1}}1'
2 4 5 6
8 9 10
[root@localhost add]# cat file|awk '{for(i=1;i<=NF;i++){$i+=1}}1{print $0}'
2 4 5 6
8 9 10
[root@localhost add]# cat file|awk '{for(i=1;i<=NF;i++){$i+=1}}{print $0}'
2 4 5 6
8 9 10
[root@localhost add]# 

 

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
猜你喜欢
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-06-12
  • 2022-12-23
相关资源
相似解决方案