On Wed, Aug 11, 2010 at 11:07 AM, Romeo Ninov <rni...@gmail.com> wrote:
> for example this command: > ls |xargs grep -l inst > will list the files and execute grep with parameter inst i.e. search > for keyword inst on list of the files, provided by ls command > And the result will be: > [r...@vmlinux ~]# ls |xargs grep -l inst > anaconda-ks.cfg > install.log > S98postkickstart-ori > S99post_oracle-ori > > > Please find below my case : $grep setenv ./subs_mgmt setenv SMGUIROOT 'pwd' setenv TCL_LIBRARY ../lib/tcl8.0 setenv TK_LIBRARY ../lib/tk8.0 setenv PATH ${PATH}:/usr/sbin:/usr/etc:. setenv SM_SERVER_PORT 2120 $./subs_mgmt setenv:Too many arguments Can you please let me know how can I use 'xargs' to solve my problem? _______________________________________________ Solaris-Users mailing list Solaris-Users@filibeto.org http://www.filibeto.org/mailman/listinfo/solaris-users