Joe Maimon <[EMAIL PROTECTED]> wrote: > When using the -d option I find it frustrating that arbitrary whitespace > ruins the field count. > > witness this script: > > dig -x $addr +noall +answer | grep -v '^;' | grep -v '$^' | expand | cut > -d' ' -f5 -z > > With the new option in this patch, you can rely on the behavior to > produce a hostname if there is one. Otherwise you cant.
How about filtering the output through tr -s ' ' just before cut? Then your script won't have to rely on less-portable features. _______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils
