News‎ > ‎

Removing Extra Whitespace - Linux / GOW / Cygwin

posted Mar 31, 2016, 10:51 PM by Ron Cotton
Here's one method using tr:
tr -s " " < file

using column (if data is in column form):
column -t inputFile

using awk:
awk '{$2=$2};1' file
Comments