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)
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)
Good evening, need your help please
Need to delete certain files before octobre 1 2016, so need to know how many files im going to delete, for instance
ls -lrt file_20160*.lis!wc -l
but using grep -c to another file called bplist which contains the list of all files backed up doesn match... (7 Replies)
Discussion started by: alexcol
7 Replies
LEARN ABOUT DEBIAN
nqs2pbs
nqs2pbs(1B) PBS nqs2pbs(1B)NAME
nqs2pbs - convert NQS job scripts to PBS
SYNOPSIS
nqs2pbs nqs_script [pbs_script]
DESCRIPTION
This utility converts a existing NQS job script to work with PBS and NQS. The existing script is copied and PBS directives, #PBS , are
inserted prior to each NQS directive #QSUB or #@$ , in the original script.
Certain NQS date specification and options are not supported by PBS. A warning message will be displayed indicating the problem and the
line of the script on which it occurred.
If any unrecognizable NQS directives are encountered, an error message is displayed. The new PBS script will be deleted if any errors
occur.
OPERANDS
nqs_script
Specifies the file name of the NQS script to convert. This file is not changed.
pbs_script
If specified, it is the name of the new PBS script. If not specified, the new file name is nqs_script.new .
NOTES
Converting NQS date specifications to the PBS form may result in a warning message and an incompleted converted date. PBS does not support
date specifications of "today", "tomorrow", or the name of the days of the week such as "Monday". If any of these are encountered in a
script, the PBS specification will contain only the time portion of the NQS specification, i.e. #PBS -a hhmm[.ss]. It is suggested that
you specify the execution time on the qsub command line rather than in the script.
Note that PBS will interpret a time specification without a date in the following way:
- If the time specified has not yet been reached, the job will become eligible to run at that time today.
- If the specified time has already passed when the job is submitted, the job will become eligible to run at that time tomorrow.
PBS does not support time zone identifiers. All times are taken as local time.
SEE ALSO qsub(1B)Localnqs2pbs(1B)