Re: bash - safely pass untrusted strings?

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



On Tue, Feb 26, 2008 at 01:51:28PM -0800, Benjamin Smith wrote:
> Unless I'm terribly mistaken (again?), the only way I've been able to 
> see "loop thru a list of files" work reliably is with "find" using 
> the "-print0" option, in cahoots with xargs. 

What is it you're trying to do?  You typically only need to use "find"
if you want to recursively descend a directory tree.  Otherwise simple
globs will do the job

  for a in *
  do
    blah "$a"
  done

-- 

rgds
Stephen
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux