XARGS
Gawain Lynch
lists-gawain at felicity-group.com
Fri Aug 11 10:43:28 UTC 2006
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...
More information about the fedora-list
mailing list