Looking for XARGS command Silent options

ls | grep -E '^[0-9]+$' | xargs --verbose -I{} rm -vfr "{}";

When i execute the command it works fine by removing the directories and its writing the output as below about which files are deleting.What i want know is,is there any XARGS command option that it should done silently in background with out writing the ouput

removed directory: `25871788/etc/config'
removed directory: `25871788/etc'
removed `25871788/README.txt'
removed directory: `25871788/files/oracle.wls.common.cam.wlst/12.2.1.2.0/wls.common.cam.symbol/modules/com.oracle.weblogic.management.scripting.jar/weblogic/management/scripting'
removed directory: `25871788/files/oracle.wls.common.cam.wlst/12.2.1.2.0/wls.common.cam.symbol/modules/com.oracle.weblogic.management.scripting.jar/weblogic/management'
removed directory: `25871788/files/oracle.wls.common.cam.wlst/12.2.1.2.0/wls.common.cam.symbol/modules/com.oracle.weblogic.management.scripting.jar/weblogic'
removed directory:

You can try by removing the -v from rm and --verbose from xargs.

1 Like

Perfect that worked.

Thanks