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

Re: Shell Scripting Question



Craig Dickson wrote:

> john wrote:
>
> > Sunny Dubey wrote:
> >
> > > Hey,
> > >
> > > how come the followind doesn't seem to work ...
> > >
> > > for i in `ls -1 /some/dir` ; do
> > >         cat /some/dir/"$i" >> /usr/fruits.txt
> > > done
> > >
> >
> > because $i contains lines like:
> >     drw-r--r--    2     sunny    sunny    12345 Oct 23 14:09 hello.c
> > which is very unlikely to be a filename.
>
> No, it doesn't. You might want to switch to a display font that
> distinguishes between a lowercase L and a number 1. If you have TrueType
> support in X, I recommend Microsoft's free "Andale Mono" font for anything
> monospaced; it has superb on-screen readability, and you can't mistake a
> one for a lowercase L, nor a zero for an uppercase O.

<grins sheepishly>
I can't believe I did that. Still, from other's replies I'm not the only one.

And as I dont use TTF my options are to set a different font as a resource. Any
suggestions?

John P Foster



Reply to: