Make sure mtime is what you mean by how old a file is, atime or ctime might be what you want. See this article written by Perderabo to make sure you choose the correct option.
My apache logs are saved in the following format (using rotatelogs):
Oct 8 01:59 access_log.1002412800
Oct 9 01:55 access_log.1002499200
Oct 10 01:58 access_log.1002585600
Oct 11 01:56 access_log.1002672000
Oct 12 01:59 access_log.1002758400
I would like to run a cronjob once a week to... (2 Replies)
Hi All,
I am wondering whether is there a way to remove files according to date. For example, I have 500 files between Jan - April, and I want to remove files created only on March.
Is there any way to do this?
Thanks in advanced.
rgds,
Ronny (2 Replies)
Hello,
Due to an error while processing data I have to delete all files created the 4 october on a RED HAT 3 Server.
I am wondering if one of you is aware of a command that could only delete all files that were created the
Oct 4 This will be very, very, very helpful
Thanks for your... (6 Replies)
we have files created by Aug12 and Feb 23 and Mar10
i want to delete the files which has created on Mar 10
Kindly let me know the script to delete the files which is created by Mar 10 (4 Replies)
Hi Guys,
I need help on deleting particular date files in a directory. I have to delete thousands of files with respect to particular date. Could anyone help on this to delete particular date files at a time?
Thanks in Advance (2 Replies)
Guys, I am wondering how to remove files for a specific date in a directory?
for instance when I do ls -l , i see many files. And i want to delete files for date May 15:
58252015 May 10 03:45 my_05102012.log
58252015 May 15 06:45 my_05152012.log
Thanks (8 Replies)
To delete log files content older than 30 days and append the lastest date log file date in the respective logs
I want to write a shell script that deletes all log files content older than 30 days and append the lastest log file date in the respective logs
This is my script
cd... (2 Replies)
dear all,
i m a newbie and i want to delete all files of a particular date,how can i do this? your help appreciated,thanks in advance.
OS:RHEL 6 (5 Replies)
Hi,
I need a command for deleting all the compress files *.Z that are older than the current date - 5 days. Basically I have a directory where daily I meet some back up files and I want to remove automatically the ones 5 days (or more) older than the current date. How can I write a 'rm' command... (1 Reply)
I'm quite new to Unix but I want to delete some old backup files stored in a directory.
the backups are stored on a network storage device located at /mnt/terastation12/backup. I want to delete everything upto one month ago. would the following command in Unix Sun do that?
find... (5 Replies)
Discussion started by: dbajtr
5 Replies
LEARN ABOUT HPUX
ipsec_config_delete
ipsec_config_delete(1M)ipsec_config_delete(1M)NAME
ipsec_config_delete - delete configuration records from the HP-UX IPSec configuration database and delete certificate files
SYNOPSIS
object_name
ip_addr
object_name
object_name
object_name
object_name
DESCRIPTION
The command deletes configuration records from the configuration database and certificate data. If HP-UX IPSec is active and running, the
data (IPsec policy, authentication record or bypass list entry) is also deleted from the runtime policy database. If you delete IPsec
policies that have active Security Associations (SAs), HP-UX IPSec removes the SAs from the Security Association Database (SADB) and sends
a delete notification to the remote system. If HP-UX IPSec removes an IKE policy, the associated IPSec SAs can remain active, but no IKE
control messages can be sent.
The command deletes the certificate for the local system and the related private key file from the directory. It does not delete certifi-
cates for CAs or Certificate Revocation Lists (CRLs). To delete these objects, you must manually delete the files in the directory. You
can use the command to display the file names with the subject names for the CA certificate files and the issuer names for the CRL files.
You cannot delete the configuration object.
Options and Operands
The command recognizes the following options and operands:
object_name
Specifies the name of the object you are deleting.
Do not use this argument when deleting a configuration object.
You cannot delete the host, IKEv1, or IKEv2 policies.
ip_addr
Specifies the IP address of the entry in the bypass list you are deleting.
EXAMPLES
The following command deletes the host IPsec policy named
AUTHOR
was developed by HP.
FILES
configuration database.
default profile file.
SEE ALSO ipsec_admin(1M), ipsec_config(1M), ipsec_config_add(1M), ipsec_config_batch(1M), ipsec_config_export(1M), ipsec_config_show(1M),
ipsec_migrate(1M), ipsec_policy(1M), ipsec_report(1M).
HP-UX IPSec Software Required ipsec_config_delete(1M)