Replacing multiple spaces with one tab in BSD (OS X) sed Press Ctrl-V and the Tab character where you see [TAB]: