[英]How do I replace a tab character with the corresponding number of space characters? (in linux)
I am planning on replacing all of my tab characters in a certain file with the corresponding number of space characters in a shell. 我打算用一个shell中相应数量的空格字符替换某个文件中的所有制表符。 Tried using tr and sed, but none seem to work out. 尝试使用tr和sed,但似乎都没有成功。 Any suggestions? 有什么建议么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.