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

Re: OT: bash scripting question -- passing values to ls



On Sun, Jan 04, 2004 at 02:27:11AM -0500, Matt Price wrote:
> so I have to do it by hand at the moment.  But shouldn't I be able to
> automate it with somthing like:
> 
> ls < locate charter | grep -i font 
> ?
> nothing I try works -- but I can't believe  it's impossible!  any
> hints?

I use backticks:
ls `locate charter | grep -i font` -ld

Some commands don't like it if you pass zillions of arguments.
You can also xargs or find, but the syntax is more cumbersome, involving 
braces {} and crap.  Somebody will probably post that syntax.



Reply to: