Cynosure.X International LLC

: :

Add Comment | Related Links | TrackBack
Related Content

Convert Multiple Spaces to Comma in Files (GPL)

"MultiSpace2Comma.bash" is an UNIX BASH script that helps you convert data with multiple spaces as separators to comma separated values (CSV). The results can be sent to the display output or redirected to a file. It has the ability to handle data coming in through STDIN (pipe).

Take the following data line for example, MultiSpace2Comma.bash can convert that data to the data presented in the line below it.

98054116    001WARD2C    PC    Warhammer 40K Dawn of War 2 Chaos Rising     $22.90

98054116,001WARD2C,PC,Warhammer 40K Dawn of War 2 Chaos Rising,$22.90

"MultiSpaces2Comma.bash" takes advantage of the following UNIX shell script, which is also available on this site. So to use the this script, you will need to download this other script if you don't already have it.


"MultiSpace2Comma.bash" is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.


  MultiSpace2Comma.bash "file 1" [ . . . "file N" ]

You may substitute '-' in place of a file to read from STDIN.

Attached File: MultiSpace2Comma.bash (1001 B)

Chieh Cheng
Fri, 12 Mar 2010 22:42:34 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 0 + 1?
Click button only once, please!


TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

36 Users Online

Hacking Digital Cameras
Fun for Photographers

Amazon Associate

Copyright © 1996 - 2021. All Rights Reserved.