Re: Fixing filenames with directories with spaces in the names

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



On Tue, Dec 28, 2010 at 2:03 AM, Craig White <craigwhite@xxxxxxxxxxx> wrote:
> Should be simple and perhaps I'm tired but it's not coming to me.
>
> In its simplest form...
>
> for old in `cat "$FILENAME"`;do
>  echo "$old"
>  dirname "$old"
>  new="$(echo $old | sed 's/\*/\-/')"
> done

Should be
 new=$(echo "$old" | sed 's/\*/\-/')

-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux