Terry Collins <[EMAIL PROTECTED]> wrote:
>
> List every file in the directory and its contents (an integer number)

I assume you don't want files that start with a dot.

> I've been fiddling with

> for o in 'ls -1'
> do
>   $o  'cat $o'  #but haven't twigged to what is wrong with 2nd part
> done  >> results

grep -H "" *

to make your version work:

for o in *; do
        echo $o `cat $o`
done
-- 
Debian GNU/Linux 2.1 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to