Re: XARGS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-08-10 at 22:57 +0200, eng.waleed wrote:
> can any one learn me how I can use xargs with ln?
> -- 

If you have a list you can skip xargs and try something like this:

mylist=`/usr/bin/mycmd`

for l in $mylist; do
	$ ln -s /my/source/location $l
done

If that does not work then you can create a link to 'location' called
'text' by doing something along the lines of:

	$ cat text | xargs ln -s /my/source/location 

This of course assumes that you are passing a single value to xargs...


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux