(This is probably a FAQ, and I'll take a pointer (or even the
magic words to identify the problem) instead of an answer.)
        Let's suppose I have a file FILE, with contents:

        foo
        bar grill
        baz

        If I do "cat FILE", everything comes out fine.
        If, however, I write a script:


        #!/bin/sh

        for i in `cat FILE`
        do
                .
                .
                .
                .
        done

        $i is set to

        foo
        bar
        grill
        baz

        Is there a way within the script - or, failing that, by
modifying FILE - to not break at the whitespace?


                                Robert Huff
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to