存在的问题是 多出一个方框或者黑格子

主要是因为bash 不能忽略windows的问题

用sed 命令来处理,分别是windows转linux,linux转windows

 sed -e 's/.$//' mydos.txt > myunix.txt

 sed -e 's/$/\r/' myunix.txt > mydos.txt

 

相关文章:

  • 2022-12-23
  • 2021-10-24
  • 2021-06-13
  • 2022-12-23
  • 2022-02-15
  • 2023-03-25
  • 2021-07-30
  • 2022-12-23
猜你喜欢
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-01-29
相关资源
相似解决方案