I think, the 3 spaces are really not needed, so your line duplexsizes=`grep -v '^//' $f | grep CustomMedia | grep '\.Duplex' | cut -d '"' -f 2 | cut -d '/' -f 1 | perl -p -e "s/\.Duplex//" | sort | uniq`
is the correcter one. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1568996 Title: Duplex printing does not work properly for HP printers To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1568996/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs