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
Moderator's Comments:
Please use CODE tags as required by forum rules!
Last edited by RudiC; 09-13-2017 at 11:12 AM..
Reason: Added CODE tags.
Hi Everybody,
Can you explain the difference between the following commands:
1. find . -print|xargs grep -i dba_2pc_pending
2. find . -print|grep -i dba_2pc_pending (5 Replies)
Hello,
I'm on a mac trying to have the follow cmd list the files after touch, but very unsuccessful. Please can you help.
sort $BOTHFILE | uniq -u | xargs -I {} -t touch {} >> $LOGFILE ;
BOTHFile contents in form of
/directory/file.txt
thanx (3 Replies)
what is the real use of xargs command ..?
ls -tr |xargs -I{} rm -f {}
....can any one tell me what is the significance of {} curly brackets in this command (1 Reply)
Hi
I am trying to use "xargs" command to loop through each file, modify it and overwrite the old file with the modification but with the same file name.
I thought it is easy but I just can't get it to work
I tried the following
I thought {} would give me the current file name, but it... (1 Reply)
Hi Guys ,
I would like to know what is use of xargs -i .What is the difference between xargs -i and xargs -I .
Could any one explain with simple examples and what would be output if I dont use -i / -I
Thanks in advance,
Frinto (2 Replies)
Hi
The command below does not work. what I am doing wrong ?
For some reason second part of the xargs command is not does what I expect
If I get this working I intend to use it for multiple file rename later.
echo archDP105144_1_702159963.dbf|xargs -i cp {} `echo {}|awk... (11 Replies)
Hi,
What is the difference in capitalizing the option 'i' of xargs command, (i.e) xargs -i and xargs -I?
Also, what is the difference between the below 2 commands?
output_from_cmd | xargs -I {} grep '{}' file
output_from_cmd | xargs -I grep '{}' file
Any efficiency or performance... (4 Replies)
ls -lrt | awk '$7==12{print $9}' | xargs -i mv {} $dir
i executed this command but $dir does not exists.......
and the files hv been moved but i dont know where .....
plz help(ASAP)
thanks in advance. (8 Replies)
xargs work great when a command gives multiple line output which can be input to another. In my case it is not working coz the second command uses two words in it.
$ scr.sh
gives output like
193740
638102
375449
..
..
another command takes these number as inputs. it works great... (1 Reply)
Hi,
I am working on a file copier utility where I have written the copy commands to a batch file e.g. file_copier.bat which i pass to xargs command as follows.
cat file_copier.bat | xargs -n 1 -P 40
I also want to record the copy command status of each file/command in the form "command... (1 Reply)
Discussion started by: ankur singh
1 Replies
LEARN ABOUT CENTOS
cgclear
CGCLEAR(1) libcgroup Manual CGCLEAR(1)NAME
cgclear - unload the cgroup filesystem
SYNOPSIS
cgclear [-e] [-l <filename>] [-L <directory>] [...]
DESCRIPTION
Without parameters, this command moves all the tasks inside the various cgroups to the root cgroup, deletes all the cgroups and finally
unmounts the cgroup filesystem from the system.
If one or more config files are specified, only groups defined in the config files are removed. The files are processed in reverse order,
i.e. the last file on command line is processed first, so cgclear can have the same command line arguments as appropriate cgconfigparser.
-l, --load=<filename>
specifies the config file to read. This option can be used multiple times and can be mixed with -L option.
-L, --load-directory=<directory>
specifies the directory, which is searched for configuration files. All files in this directory will be processed in alphabetical
order as they were specified by -l option. This option can be used multiple times and can be mixed with -l option.
-e specifies that only empty groups should be removed. If a group defined in a config file has tasks inside or has a subgroup, it won't
be removed. This option works only with -l or -L options.
ENVIRONMENT VARIABLES
CGROUP_LOGLEVEL
controls verbosity of the tool. Allowed values are DEBUG, INFO, WARNING or ERROR.
SEE ALSO cgconfigparser(1)Linux 2009-10-23 CGCLEAR(1)