参考链接

#cat data.csv

kris, florida, 29
jenn, florida, 25
bob, texas, 35

格式化后

# column -t data.csv
kris,    florida,   29
jenn,   florida,   25
bob,    texas,    35

 

column 重定向后文件为空  所以需要sponge帮助 (#column -t data.csv > data.csv 得到data.csv为空)

安装 sponge

 #apt-get install moreutils

# column -t data.csv |sponge data.csv
# cat data.csv
kris,    florida,   29
jenn,   florida,   25
bob,    texas,    35

 

 

 

 

相关文章:

  • 2022-01-08
  • 2022-01-27
  • 2022-12-23
  • 2021-11-18
  • 2022-02-08
  • 2021-10-23
  • 2021-09-21
  • 2021-12-15
猜你喜欢
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
相关资源
相似解决方案