Okay, I've been working on this for a while, and I've tidied it up, but I'm still not clear on what it is you're trying to do.

That said, it never seemed to fail for me, but here it is with the awk script embedded, using tabs and newlines as delimiters, and generally cleaned up. Added some comments so you can understand what's going on.


Attachments
AppleTrailerTEST.bash (163 downloads)

_________________________
Bitt Faulk