xargs linux下的多行合并~
[root@]# yum list installed|grep php|awk -F ' ' '{print $1}'php-channel-nrk.noarchphp-cli.x86_64php-common.x86_64php-fpm.x86_64php-gd.x86_64php-mysql.x86_64php-nrk-Predis.noarchphp-pdo.x86_64php-pear.noarchphp-pecl-igbinary.x86_64php-pecl-redis.x86_64php-phpiredis.x86_64php-process.x86_64php-xml.x86_64[root@]# yum list installed|grep php|awk -F ' ' '{print $1}'|xargsphp-channel-nrk.noarch php-cli.x86_64 php-common.x86_64 php-fpm.x86_64 php-gd.x86_64 php-mysql.x86_64 php-nrk-Predis.noarch php-pdo.x86_64 php-pear.noarch php-pecl-igbinary.x86_64 php-pecl-redis.x86_64 php-phpiredis.x86_64 php-process.x86_64 php-xml.x86_64[root@iz8vbilqy0q9v8tds55bqyz Hoteltest]#