10-25-2012
I thought this may be the case however without the "!" it returns search results from other directories within this directory ie /dataload/archivelogs/archive
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can anyone tell me how I would write a script in ksh on AIX that will delete files in a directory older than 7 days? (1 Reply)
Discussion started by: lesstjm
1 Replies
2. Shell Programming and Scripting
i have to delete files which are older than 15 days or more except the ones in the directory Current and also *.sh files
i have found the command for files 15 days or more older
find . -type f -mtime +15 -exec ls -ltr {} \;
but how to implement the logic to avoid directory Current and also... (3 Replies)
Discussion started by: ali560045
3 Replies
3. Shell Programming and Scripting
Hi Frnds,
I have to list the files which are older than 7 days in the given directory.
it should consider only the files and should not show subdirectories.
Thanks,
Raja (3 Replies)
Discussion started by: smr_rashmy
3 Replies
4. Shell Programming and Scripting
Hi Guys,
I am new to unix
I am looking for a script to delete files older than 7 days but i also want to exclude certain directories (like arch,log .....) and also some files with extensions
( like .ksh, .ch, ..............)
Thanks (1 Reply)
Discussion started by: MAYAMAYA0451
1 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
OS :- HP-UX wm5qa B.11.23 U ia64 1119805695 unlimited-user license
I need to search files older than 50 days. I've used following command in order to search desired files, I also discoverd, it's showing today's files as well. Do you have any clue with this ?
wmqa1> find .... (4 Replies)
Discussion started by: alok.behria
4 Replies
6. UNIX for Dummies Questions & Answers
Hi
I am facing problem in using this command,
mv `find /export/june/PURGEDATA*.txt -mtime +2 -exec ls {} \;` june/archive/
mv: Insufficient arguments (1)
Usage: mv f1 f2
mv f1 ... fn d1
mv d1 d2
Thank you in advance (2 Replies)
Discussion started by: vishwakar
2 Replies
7. Shell Programming and Scripting
Hello,
I need to move all the files inside /XYZ (has multi-depth sub directories) that are older than 14 days to/ABC directory but with retaining the SAME directory structure.
for example:
/XYZ/1/2/3/A/b.txt should be moved as /ABC/1/2/3/A/b.txt
I know about find /XYZ -type f -mtime +14... (3 Replies)
Discussion started by: prvnrk
3 Replies
8. Shell Programming and Scripting
Hello all,
I want to list the files older than 10 days. Currently am using
find ./ -mtime +10 -exec ls -ltr {} \;
command. But I want to execute the same command in 16 directories at a time and want an output asking to remove those file?
Please help me to design the script.
regards,
Ajay (3 Replies)
Discussion started by: 02Ajay
3 Replies
9. Shell Programming and Scripting
Hello all,
do you know any way i can i move folders and its content if folder is older than 1,5 days in bash?
I tried:
find /home/xyz/DATA/* -type d -ctime +1.5 -exec mv "{}" /home/xyz/move_data_here/ \;All i got was that Files from DATA /home/xyz/DATA/* ended messed up in... (1 Reply)
Discussion started by: ZerO13
1 Replies
LEARN ABOUT ULTRIX
conflict
conflict(8mh) conflict(8mh)
Name
conflict - search for alias/password conflicts
Syntax
/usr/lib/mh/conflict [ -help ] [ -mail name ] [ -search directory ] [ aliasfiles ... ]
Description
The program checks to see if the interface between MH and transport system is in good shape. It also checks for maildrops in which do not
belong to a valid user. It assumes that no user name will start with a dot (.) and thus ignores files in which begin with a dot.
The program checks the entries in the specified alias files. It parses the entries in the same way that would, and outputs any errors
which it finds. The program can be used to check the entries in a user's personal alias file, or in the system alias file, If no alias
file is specified, checks the system alias file.
The program also checks the file for entries which do not belong to a valid user, and for users who do not have a valid group number. In
addition, duplicate users and groups are noted.
The program should be run under or whenever system accounting takes place.
Options
-help Prints a list of the valid options to this command.
-mail name
Mails the results to the specified name. Otherwise, the results are sent to the standard output.
-search directory
Searches directories other than and reports anomalies in those directories. The -search switch can appear more than once in an
invocation to with different directories named.
Files
The system customization file.
The system password file.
The system group file.
Program used to mail results, if the
-mail option is used.
Directory containing users' maildrops.
See Also
mh-alias(5mh), cron(8)
conflict(8mh)