FG
💻 Software

How to replace multiple spaces by one tab

Fresh5 days ago
Mar 15, 202690215 views
Confidence Score0%
0%

Problem

I have some text files which contain some columns separated by a various number of spaces, but instead I need one single tab as a separator. Is it possible to do in Bash?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to replace multiple spaces by one tab

Low Risk

To convert sequences of more than one space to a tab, but leave individual spaces alone: To do this for a number of files: or or Use this form for MacOS (or simply to avoid escaping the in Linux): along with other options, etc., that you need from t…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment