Re: Passing paths with spaces from one command to another

2009-03-10 Thread Greg Wooledge
On Tue, Mar 10, 2009 at 02:31:06PM +0200, Angel Tsankov wrote: > What if the second command is a function defiend in a shell script, or a > bash built-in command? I assume this is related to Mike's earlier answer of: find . -print0 | xargs -0 ls You can use a while read loop: find . -prin

Re: Passing paths with spaces from one command to another

2009-03-10 Thread Angel Tsankov
What if the second command is a function defiend in a shell script, or a bash built-in command?

Re: Passing paths with spaces from one command to another

2009-03-10 Thread Mike Frysinger
On Tuesday 10 March 2009 07:42:29 Angel Tsankov wrote: > I want to pass the output from one command (e.g. find) to some other > command so that each path (output by the first command) gets into a > distinct positional parameter of the second command. How can I do this if > some paths contain space