LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] for loops and interpolation

[ILUG] for loops and interpolation

kevin lyda kevin at suberic.net
Tue Apr 3 16:32:34 IST 2001


On Tue, Apr 03, 2001 at 10:23:08AM -0500, Stephen_Reilly at dell.com wrote:
> 	I need a hand. Having casually stroked the underbelly of the
*applause*
> solution for several hours I am still lacking an easy way of getting a list
> of files (the names of some of which contain spaces) and passing them one by
> one to a function. So I find myself with a deadline which if I take off my
> earphones I can actually hear approaching. I can get the filelist and put
> nice quotes around it and stuff with:
> FILELIST='"'`find -type f -print "%p" | sed 's%\(.\)\(\./\)%\1\"\"\2%g'`'"'

find -type f -print0|xargs -0 -n 1 function_name

now, function_name would need to be a shell script, but it seems simpler
otherwise...

kevin

-- 
kevin at suberic.net          i...  i have a dream.  and that dream is:
fork()'ed on 37058400      use DIY::Tiler;
meatspace place: work      my($t) = new DIY::Tiler;
http://suberic.net/~kevin  $t->tile(-room => "en-suite", -style => "stone");




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell