awk not outputting properly

Like that, you would still need to double quote the variable expansion:

newFolder=`/usr/bin/awk -F, '/^'"$i"'/ { ...`

But that would still leave room for partial matches...
Neutronscott made some better suggestions IMO.

Yeah, I am brushing up on my awk, so I am sure there are more efficient ways to use it. Also, thanks to Nuetronscott for helping me, even though I was being too daft to catch on. I apologize for that. Just working non stop and traveling has pretty much fried my brain...I need like a whole weekend of sleep.

Thanks

I know that feeling, like you had a gargle blaster, sleep well :slight_smile:

So potent your babel fish gets drunk! hahaha