Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个文本文件(制表符分隔),我想用字符“0”替换第 1750960 列中的“空格”。这个怎么做?
如果您实际上是在谈论一行中的第 1750960 个字符,这是一种很好的解决方法
echo $YOUR_LINE | sed 's|\(.\{1750959\}\).|\10|'
和\ \(1`\)' take whatever is matched inside them and relates it back to用于替换。
\(
\)' take whatever is matched inside them and relates it back to
我希望这有帮助