Re: Maledetti spazi
Ciao,
Fri, May 28, 2010 at 03:45:05AM -0700, Walter Valenti wrote:
> Problemino:
> devo estrarre alcuni nomi di file/directory.
> Lo risolvo in maniera semplice con
> ls -al | awk {'print $9'} | grep vari.
>
> Problema: alcuni di questi file/directory possono essere nomi con una spazio in mezzo
> Come faccio ad estrarre interamente il nome di quest'ultimi ?
OLDIFS=$IFS
IFS="
"
.....
IFS=$OLDIFS
--
Bye Enrico
Riffle West Virginia is so small that the Boy Scout had to double as the
town drunk.
Reply to: