> come to fin out one of the people having the problem copied the script
> from a Windows2000Pro workstation and copied it to a dos formated 144
> floppy. We were running SSH on a mandrake server and that is how the
> file got to disk. A co-worker said RedHat can tell if the file had
> DOS dangles from the initialization to write the file........and shure
> wnought, RedHat said it did and asked us if we wanted to remove this
> !! Unbelievable.
> We just typed te script from scrach within a Linux system and it
> Hours were just wasted comparing booggers.
> Matt
Glad to hear it's working for you now. I can't imagine what it's actually
doing given the output I get from "df", but I guess that combination of
tests on NR and getlines has the right embedded magic 8-). Oh, hang on - by
testing for NR%2 AND adding a "getline", maybe they're canceling each other
out and that's why it's working! Doesn't explain that second getline,
though, unless awk uses the second getlines population of $0, etc. for the
subsequent record. If so - is there an "obfuscated awk" collection somewhere
like there is for C, 'cos I think we have an entry!
Regards,
Ed.