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

Re: xfs initscript enhancements, take 5



On Oct  9, 2003, "Mike A. Harris" <mharris redhat com> wrote:

> The final "ls|grep -E" which detects non-ttf/non-otf fonts will 
> come up true if the directory contains subdirectories.  The only 
> way I can think of to easily avoid this, is to use "find" instead 
> of "ls|grep -E" and disable directory recursion, and only return 
> files, not dirs.  That change is a bit more experimental however, 
> so I'm leaving that for the future.

Consider ls -F | grep -v /$

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva {redhat com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva {lsd ic unicamp br, gnu.org}
Free Software Evangelist                Professional serial bug killer




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