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

Re: Shell Scripting Question



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" <dubeys@bxscience.edu>
To: <debian-user@lists.debian.org>
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 debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
>
>
>



Reply to: