I want to do this (dont give me other ways of doing this
since I want to make an abstract to apply in other situations)
# locate netscape (pipe) grep xpm (pipe) cp stdout /opt/kde/share/icons
Now how do I assign:
"locate netscape (pipe) grep xpm"
to be variable $1 and then how do I manage to make cp copy $1 ?
What about more than a variable?
Thanks!
Raul
-- To unsubscribe send e-mail to suse-linux-e- unsubscribe@suse.com For additional commands send e-mail to suse-linux-e- help@suse.com Also check the FAQ at http://www.suse.com/support/faq and
specific task the
archives at http://lists.suse.com
Hi Paul,
You could try the following:
for fname in $(locate netscape | grep xpm); do
cp $fname /opt/kde/share/icons
done
HTH,
Thomas Adam
-----------
Thomas Adam
-----------
"The Linux Weekend Mechanic" --