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

 



On Monday 10 July 2006 11:18, Mauricio Vergara Ereche wrote:
> El Lunes, 10 de Julio de 2006 11:07, T. Horsnell escribió:
> > This is not very elegant, but:
> >
> > alf1_tsh> echo "5.1.2" | cut -d "-" -f 1 | cut -d "_" -f 1  5.1.2

[snip]

> Oh!
> I see.
> 
> In that case, I suggest:
> for i in ?.?.?
> 
> I tried to do the "logical-to-me" expansion:
> 
>   for i in *.[:digit:]

Your problem is that you think the shell uses regular expressions.
It doesn't.  It uses "globs".  See glob(7).

-- 
Garry T. Williams --- +1 678 656-4579



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