On Mon 04 Aug 2014 15:59:34 Xing Gu wrote:
> -rmdir -p cgroup/*
> +if [ "$(ls -A cgroup/)" ]; then
> +     rmdir -p cgroup/*
> +else
> +     rmdir cgroup/
> +fi

one line:
find cgroup/ -maxdepth 1 -depth -exec rmdir {} +
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to