Ahh. Reread correctly.<br><br>1. Flog stupid M$ user<br>2. Lock out their account<br>3. use Geoffery's solution below<br>4. Flog user again to make the point clear<br><br><div class="gmail_quote">On Fri, Jan 22, 2010 at 12:53 PM, Geoffrey <span dir="ltr"><<a href="mailto:lists@serioustechnology.com">lists@serioustechnology.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Terry Bailey wrote:<br>
> I don't want to change any characters in a file. I want to change<br>
> each " " to a "_" within the file name itself.<br>
<br>
</div>Multiple spaces in file name:<br>
<br>
mac/home/esoteric> filename="foo foo foo"<br>
mac/home/esoteric> ls "$filename"<br>
foo foo foo<br>
<div class="im">mac/home/esoteric> mv "$filename" $(echo "$filename"|tr " " "_")<br>
mac/home/esoteric> ls foo_foo__foo<br>
</div>foo_foo__foo<br>
<div><div></div><div class="h5"><br>
><br>
> At 11:40 AM 1/22/2010, you wrote:<br>
>> Terry Bailey wrote:<br>
>>> Hi,<br>
>>><br>
>>> Does anyone know how to use either a command or batch file to change<br>
>>> all the blanks in a file name to another character?<br>
>>><br>
>>> I thought maybe sed would work, but if so, I have not been able to<br>
>>> figure it out.<br>
>> cat filename |tr " " "$NEWCHARACTER"<br>
>><br>
>>> Thanks,<br>
>>><br>
>>> Terry Bailey<br>
>>><br>
>>> _______________________________________________<br>
>>> Ale mailing list<br>
>>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
>>> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
>>> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
>>> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
>>><br>
>><br>
>> --<br>
>> Until later, Geoffrey<br>
>><br>
>> "I predict future happiness for America if they can prevent<br>
>> the government from wasting the labors of the people under<br>
>> the pretense of taking care of them."<br>
>> - Thomas Jefferson<br>
>> _______________________________________________<br>
>> Ale mailing list<br>
>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
>> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
>> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
>> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
>><br>
>> __________ Information from ESET NOD32 Antivirus, version of virus<br>
>> signature database 4797 (20100122) __________<br>
>><br>
>> The message was checked by ESET NOD32 Antivirus.<br>
>><br>
>> <a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
><br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Until later, Geoffrey<br>
<br>
"I predict future happiness for America if they can prevent<br>
the government from wasting the labors of the people under<br>
the pretense of taking care of them."<br>
- Thomas Jefferson<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br>Actively in pursuit of Life, Liberty and Happiness <br><br>