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
"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" ]
Did your message disappear? Read the Forums FAQ.
Spam Control | * indicates required field
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.
1645 Users Online
Copyright © 1996 - 2017. All Rights Reserved.