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)
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 CENTOS
show
SHOW(7) PostgreSQL 9.2.7 Documentation SHOW(7)NAME
SHOW - show the value of a run-time parameter
SYNOPSIS
SHOW name
SHOW ALL
DESCRIPTION
SHOW will display the current setting of run-time parameters. These variables can be set using the SET statement, by editing the
postgresql.conf configuration file, through the PGOPTIONS environmental variable (when using libpq or a libpq-based application), or
through command-line flags when starting the postgres server. See Chapter 18, Server Configuration, in the documentation for details.
PARAMETERS
name
The name of a run-time parameter. Available parameters are documented in Chapter 18, Server Configuration, in the documentation and on
the SET(7) reference page. In addition, there are a few parameters that can be shown but not set:
SERVER_VERSION
Shows the server's version number.
SERVER_ENCODING
Shows the server-side character set encoding. At present, this parameter can be shown but not set, because the encoding is
determined at database creation time.
LC_COLLATE
Shows the database's locale setting for collation (text ordering). At present, this parameter can be shown but not set, because the
setting is determined at database creation time.
LC_CTYPE
Shows the database's locale setting for character classification. At present, this parameter can be shown but not set, because the
setting is determined at database creation time.
IS_SUPERUSER
True if the current role has superuser privileges.
ALL
Show the values of all configuration parameters, with descriptions.
NOTES
The function current_setting produces equivalent output; see Section 9.26, "System Administration Functions", in the documentation. Also,
the pg_settings system view produces the same information.
EXAMPLES
Show the current setting of the parameter DateStyle:
SHOW DateStyle;
DateStyle
-----------
ISO, MDY
(1 row)
Show the current setting of the parameter geqo:
SHOW geqo;
geqo
------
on
(1 row)
Show all settings:
SHOW ALL;
name | setting | description
-------------------------+---------+-------------------------------------------------
allow_system_table_mods | off | Allows modifications of the structure of ...
.
.
.
xmloption | content | Sets whether XML data in implicit parsing ...
zero_damaged_pages | off | Continues processing past damaged page headers.
(196 rows)
COMPATIBILITY
The SHOW command is a PostgreSQL extension.
SEE ALSO SET(7), RESET(7)PostgreSQL 9.2.7 2014-02-17 SHOW(7)