行首空格删除
sed -r 's/^\s+//g' 514.txt
sed -e 's/^\s*//g' 514.txt
sed 's/^ *//' 514.txt
sed 's/^[[:space:]]*//' 514.txt
awk '{sub(/^[ \t]+/, "")};1' 514.txt
全部空格删除
sed '/^ .*/s/ //g' 514.txt

 

相关文章:

  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-09-14
  • 2022-03-05
  • 2022-02-07
  • 2022-12-23
猜你喜欢
  • 2021-07-21
  • 2021-11-17
  • 2022-12-23
  • 2022-01-25
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案