Re: Help with files and spaces with shell script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/16/07, Paul Ward <pnward@xxxxxxxxxxxxxx> wrote:
> I have found that using the read command also works with spaces and
> can take the output of find and convert it to a variable. The only
> issue I have found is mencoder will not convert a file with a space. I
> may have to convert teh spaces to _ for this script to work
> consistently.
>
> find /myth/recordings/ -maxdepth 1 -name \*.mpg -ctime -1 ! -mmin -1
> -print | while read i

Enclose the names of the files with quotes. That has worked fine for me.

Paul


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux