my command deletes the oldest file from a folder and I'd like to have some type of output when the file is selected or deleted.
I'm not sure how to incorporate echo into this.
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)
Hi,
We have a file which needs supper user previleges to delete. There are 10 users having super user preveleges. Some times back that file got deleted. How to know who has deleted that file? (6 Replies)
Hi, im having a problem with xargs, i want to cout word of each line in file, and i HAVE to use xargs, i tried:
cat file | xargs wc -w .....that uses all words in file like name of files and passed then to wc so it worte wc :somewordformfile is not i afile or directory
cat file | xargs -I{} wc... (3 Replies)
Hi:
how come this command does not work? the error message is:
xargs: cd: No such file or directory
yet, in the same time, 'echo dir_path | xargs ls' works.
Does it work in bash? We use csh.
Thanks.
NB Phil (7 Replies)
Folks
I've been struggling this with for far too liong now and need your help!
I've been happily using grep for a search of a directory, to list the files which contain a string:
find . -type f -mtime -5 -print | xargs grep -l 'invoiceID=\"12345\"'
Now the list of 'invoiceID' I am... (4 Replies)
Hi,
I'm currently using the following command to wipe clean a log file which can't be straight out RM'd:
cat /dev/null > server.log
I'm building this into a script and I'm current working on a command to run on each machine to do this automatically however I have multiple files so I need... (11 Replies)
Hi,
I've got to setup a script that will run daily, and find a log file of a certain age, and then compress and transfer this file to a new location.
so far i've been able to specify the file i want with:
find . -name 'filename.*.log' -mtime 14 -exec compress -vf {} \;
this prints out... (4 Replies)
Using the find command to find files in a directory and automatically delete files older than 24 hours find . -mtime +0 | grep file | xargs rm. Using the find man page but I can't seem to make it work for files that have the previous day's time stamp but are not 24 hours old. Is there a way for... (4 Replies)
Hello,
I am trying to move all the file listed by below command to /tmp/testing directory
find ./ -maxdepth 1 -type f -mtime +3
I tried using -exec and xargs - none of the combination is working?
Please, help (3 Replies)
It always seemed to me that these utils are siblings.
All they do are that substitute values for variables, rearrange the parameters, and confuse the input with the output. :)
I tried to display their main signature in table together. To show their similarities (3 Replies)
Discussion started by: nezabudka
3 Replies
LEARN ABOUT XFREE86
asadmin-delete-domain
asadmin-delete-domain(1AS) User Commands asadmin-delete-domain(1AS)NAME
asadmin-delete-domain, delete-domain - deletes the givendomain
SYNOPSIS
delete-domain [--terse=false] [--echo=false] [--domaindir install_dir/domains] domain_name
delete-domain deletes the specified domain. The domain must already exist and must be stopped. This command is supported in local mode
only.
OPTIONS --domaindir directory where the domain is to be deleted. If specified, path must be accessible in the filesystem. If not speci-
fied, the domain in the default install_dir/domains directory is deleted.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script. Default is false.
--echo setting to true will echo the command line statement on the standard output. Default is false.
OPERANDS
domain_name name of the domain. Must be a unique name.
Example 1: Using delete-domain
asadmin> delete-domain sampleDomain
deleted domain sampleDomain successfully
Where: the sampleDomain domain is deleted.
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-create-domain(1AS), asadmin-start-domain(1AS), asadmin-stop-domain(1AS), asadmin-list-domains(1AS)J2EE 1.4 SDK March 2004 asadmin-delete-domain(1AS)