also sprach Carlos Sousa <csousa@tvtel.pt> [2003.02.09.1517 +0100]: > > <user>\s+<filename> > > I take it you mean that each line is composed of two words, separated by > one or more spaces, and terminated with a newline. Both words will, of > course, contain no spaces. righty. > > while read user filename; do > > echo "$user : $filename" > > done < thefile > > I cut and pasted this code of yours with *no* modifications, and it ran > perfectly under bash. No tinkering with IFS or anything else. i know it works. it just didn't. and shell doesn't really render itself to nice debugging > Please mail me a copy of your 'thefile' (less any confidential > info), I would really like to debug this issue. i have long abandoned this as a friend started writing the perl code for this. sorry... -- Please do not CC me when replying to lists that I read! .''`. martin f. krafft <madduck@debian.org> : :' : proud Debian developer, admin, and user `. `'` `- Debian - when you have better things to do than fixing a system NOTE: The pgp.net keyservers and their mirrors are broken! Get my key here: http://people.debian.org/~madduck/gpg/330c4a75.asc
Attachment:
pgpOLcoInb7nV.pgp
Description: PGP signature