You can do basic script debugging with -x, as in:
    sh -x myscript

Or use set -v in the script, as in:
    set -v
    for i in...
    cat ...
    done
    set +v

~mark

----- Original Message -----
From: "Sunny Dubey" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, November 05, 2001 6:04 PM
Subject: Shell Scripting Question


> 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
>
> cat just gives me the odd error of files not being found, however, I can't
> see why the files wouldn't be found ... hrrm ...
>
> thanks much for any info you might provide
>
> =)
> Sunny Dubey
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]
>
>
>

Reply via email to