[CRIU] [PATCH 08/16] parasite: Make sure no dots in names generated

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 14 07:20:13 EST 2012


On Tue, Feb 14, 2012 at 03:46:52PM +0400, Andrew Vagin wrote:
> On Mon, Feb 13, 2012 at 11:26:31PM +0400, Cyrill Gorcunov wrote:
> > Some names may be "dot" mangled.
> > 
> > Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> > ---
> > -nm $name_objname | grep ' [Tt] ' | awk "$awk_cmd"
> > +nm $name_objname | grep ' [Tt] ' | sed -e 's/\./_/g' | awk "$awk_cmd"
> 
> Using grep, sed and awk together is a bad style. awk is enough for all
> these things.
> 

I never worked with awk much. So help is appreciated.

	Cyrill


More information about the CRIU mailing list