It is shorter, but this is better if you might have = in your value: echo "BLAH=VALUE ONE" | perl -pe 's/.*?=//' echo "BLAH=KEY=VALUE" | perl -pe 's/.*?=//'
--- Begin Message ---I wrote: > echo "BLAH=VALUE ONE" | perl -anF'=' -e "print pop(@F)" This is shorter: echo "BLAH=VALUE ONE" | perl -pe "s/.*=//" _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--- End Message ---