On Sat, 21 Apr 2001 20:04:31 +0100, Brian Somers wrote: > > Sorry for butting in. Adding new non-portable functionality to solve the problem > > which could be adequitely taken care of using existing and well known > > techniquies is not appropriate, I completely agree with you on that. > > And I'm still waiting to see those well known techniques. Attached small script should solve this problem and doesn't require introducing incompatible option in the standard tool. For example: find /usr/src -type f | xargs larg cp targetdir For speed purposes it could be implemented in raw C. -Maxim #!/bin/sh if [ ${#} -le 2 ]; then echo "Usage: larg command lastarg arg1 [arg2 ...]" exit 0 fi COMMAND=${1} LASTARG=${2} shift 2 exec ${COMMAND} "${@}" "${LASTARG}" To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
- Re: cp -d dir patch for review (or 'xargs'?) Brian Somers
- Re: cp -d dir patch for review (or 'xargs'?) Brian Somers
- Re: cp -d dir patch for review (or 'xargs'?) Dima Dorfman
- Re: cp -d dir patch for review (or 'xargs'?) Brian Somers
- Re: cp -d dir patch for review (or 'xargs'?) Garance A Drosihn
- Re: cp -d dir patch for review (or 'xargs'?) Dima Dorfman
- Re: cp -d dir patch for review (or 'xargs'?) Alexander Kabaev
- Re: cp -d dir patch for review (or 'xargs'?) Sheldon Hearn
- Re: cp -d dir patch for review (or 'xargs'?) Alexander Kabaev
- Re: cp -d dir patch for review (or 'xargs'?) Brian Somers
- Re: Re: cp -d dir patch for review (or 'xargs'?... Maxim Sobolev
- Re: Re: cp -d dir patch for review (or 'xargs'?... Brian Somers
- Re: cp -d dir patch for review (or 'xargs'?) Maxim Sobolev
- Re: Re: cp -d dir patch for review (or 'xargs'?... Brian Somers
- Re: cp -d dir patch for review (or 'xargs'?) Brian Somers
- Re: cp -d dir patch for review (or 'xargs'?) Bruce Evans
- Re: cp -d dir patch for review (or 'xargs'?) Rodney W. Grimes
- Re: cp -d dir patch for review (or 'xargs'?) Brian Somers
- Re: cp -d dir patch for review (or 'xargs'?) Oliver Fromme
- Re: cp -d dir patch for review (or 'xargs'?) Brian Somers
- Re: cp -d dir patch for review (or 'xargs'?) Oliver Fromme