On Sun, Sep 15, 2013 at 10:15:47AM +0200, Geert Uytterhoeven wrote:
> On Sun, Sep 15, 2013 at 6:39 AM, Guenter Roeck <li...@roeck-us.net> wrote:
> > -      cmd_modpost = $(MODLISTCMD) | sed 's/\.ko$/.o/' | $(modpost) -s -T -
> > +      cmd_modpost = $(MODLISTCMD) | sed 's/\.ko$/.o/' | \
> > +       while read a; do [ -f $a ] && echo $a; done | $(modpost) -s -T -
> 
> I'm wondering whether this can be filtered without using a shell while loop?
> E.g. using "ls"?
> 
I sent another version using 'ls'. Using 'find' would be possible as well,
though both need an error redirect. Hope one of the versions is acceptable.

If anyone has a better idea, please let me know.

Thanks,
Guenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to