I'm new to bash and want to know a simple sed, awk, or grep script that will find all instances of 2 or more spaces and convert them to a single tab. Thanks for the help in advance.
In the command mode
:1,$ s/[ ][ ][ ]*/<tab>/g
or using sed
cat inputfile | sed 's/[ ][ ][ ]*/<tab>/g' > outputfile