[ale] Removing blanks

Robert L. Harris robert.l.harris at gmail.com
Fri Jan 22 11:44:04 EST 2010


Sed -e's/ */x/' < file.txt > fileout.txt

I believe that will change one or mor spaces into an x. If you want a  
one to one substitution, remove the *.

:wq!
--
   Robert L. Harris

On Jan 22, 2010, at 9:22, Terry Bailey <terry at bitlinx.com> wrote:

>
> Hi,
>
> Does anyone know how to use either a command or batch file to change
> all the blanks in a file name to another character?
>
> I thought maybe sed would work, but if so, I have not been able to
> figure it out.
>
> Thanks,
>
> Terry Bailey
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo


More information about the Ale mailing list