$ sudo awk 'NR%2==1{close(p".txt");++p}{print > p".txt"}' test.txt

$ sudo split -d -l 2 test.txt new

 

相关文章:

  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-10-02
猜你喜欢
  • 2021-11-11
  • 2021-04-11
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-06-16
  • 2021-06-18
相关资源
相似解决方案