Sponsored Content
Full Discussion: Date Format in UNIX
Top Forums Shell Programming and Scripting Date Format in UNIX Post 302529624 by rdcwayx on Thursday 9th of June 2011 10:41:13 PM
Old 06-09-2011
same one, cleaned.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix Date Format

I have an Foxbase application that saves dates in a character field using a Unix date format. Does anyone know what the formula is to convert back to a standard date, something that can be, I hesitate to say, understood in a Windows environment, such as Excel or Access. cheers peter (2 Replies)
Discussion started by: sfpoet
2 Replies

2. Shell Programming and Scripting

Check for the correct date format in UNIx

Hi All, I am getting two input from User for Date from the command prompt when my script is executed . The date format i am taking is : DD-MM-YYYY so is there any method in Unix to validate the two input date. There might be many cases for these two date to be invalid.... (1 Reply)
Discussion started by: rawatds
1 Replies

3. UNIX for Dummies Questions & Answers

Alternative of format date in HP unix

HI, Does anyone know how the alternative way to format date to 'Jul07' in UNIX-HP . I found HP Unix does not support date -d....:( --------------------------------------------------------------- trxStartYear=2007 mthKey0=07 trxDay=20 key=`date -d ${trxStartYear}${mthKey0}${trxDay}... (2 Replies)
Discussion started by: epall
2 Replies

4. UNIX for Dummies Questions & Answers

changing the format of date in unix

When i execute the below command it is giving the timestamp in the format mentioned below ls -ltr 1234.txt | awk 'BEGIN {FS=" "} {print $6" "$7" "$8}' Mar 20 00:12 i want output in the format 200803200012 please help me how to do it here year is not returned and i have to convert mar to... (5 Replies)
Discussion started by: trichyselva
5 Replies

5. Shell Programming and Scripting

Unix date Format (MON)

Hi , Can any one give me what is the date format for 3 character Month all caps (MON) when I do date +%b it will give me Sep But I want this to be SEP (all caps) . Thanks in advance (1 Reply)
Discussion started by: umathurumella
1 Replies

6. Shell Programming and Scripting

convert unix date to readable format

Dear Experts, I need your help to convert a unix date and time format number in to readable format like dd/mm/yyyy . I have a text file of more than 10,000 records and it is like NAME DATE1 COUNTRY DATE2 ABD 1223580395699 USA 1223580395699... (3 Replies)
Discussion started by: shary
3 Replies

7. Shell Programming and Scripting

convert date format to mysql date format in log file

I have a comma delimited log file which has the date as MM/DD/YY in the 2nd column, and HH:MM:SS in the 3rd column. I need to change the date format to YYYY-MM-DD and merge it with the the time HH:MM:SS. How will I got about this? Sample input 02/27/09,23:52:31 02/27/09,23:52:52... (3 Replies)
Discussion started by: hazno
3 Replies

8. Shell Programming and Scripting

To convert a date(in string format) to unix timestamp

Hi All, I have a string like below. "Mar 31 2009" . I want to convert this to unix time . Also please let me know how to find the unix time for the above string minus one day. For Eg. if i have string "Mar 31 2009" i want to find the unix time stamp of "Mar 30 2009". Thanks in advance,... (11 Replies)
Discussion started by: girish.raos
11 Replies

9. Shell Programming and Scripting

Convert date to Unix format

Dear Expert How to convert date in format of YYYY-MM-DD HH:MM:SS to unix format using a script or command if avaliable Example "2011-05-15 18:00:00" is converted to 1330970400 I tried to use option d in date command but no use, Im using solaris 10 Thanks a lot (12 Replies)
Discussion started by: yahyaaa
12 Replies

10. UNIX for Dummies Questions & Answers

Rename all Files in a UNIX Directory from one date format to another date format

Hi Unix Gurus, I would like to rename several files in a Unix Directory . The filenames can have more than 1 underscore ( _ ) and the last underscore is always followed by a date in the format mmddyyyy. The Extension of the files can be .txt or .pdf or .xls etc and is case insensitive ie... (1 Reply)
Discussion started by: pchegoor
1 Replies
CLEANARCH(1p)						User Contributed Perl Documentation					     CLEANARCH(1p)

NAME
cleanarch - Clean a DNSSEC-Tools key archive of old keys SYNOPSIS
cleanarch [options] <keyrec-file | rollrec-file> DESCRIPTION
cleanarch deletes old keys from a DNSSEC-Tools key archive. Key "age" and archives are determined by options and arguments. Command line options and arguments allow selection of archives, keys to delete, amount of output to provide. The options are divided into three groups: archive selection, key selection, and output format. Complete information on options is provided in the OPTIONS section. cleanarch takes a single argument (as distinguished from an option.) This argument may be either a keyrec file or a rollrec file. If the file is a keyrec file, the archive directory for its zone keyrecs are added to the list of archives to clean. If the file is a rollrec file, keyrec files for its zones are searched for the zones' archive directory, and those directories are added to the list of archives to clean. If a zone does not have an archive directory explicitly defined, then the DNSSEC-Tools default will be cleaned. The archives specified by this argument may be modified by archive-selection options. The archive-selection options combine with the keyrec or rollrec file to select a set of archive directories to clean. (Some options can take the place of the file argument.) The key-selection options allow the set of keys to be deleted to contain an entire archive, a particular zone's keys, or all the keys prior to a certain date. The output-format options sets how much output will be given. Without any options selected, the names of keys will be printed as they are deleted. If the -verbose option is given, then the directories selected for searching and the keys selected for deletion will be printed. If the -dirlist option is given, then the directories selected for searching will be printed and no other action will be taken. If the -list option is given, then the keys selected for deletion will be printed and no other action will be taken. cleanarch only cleans the archive directories; the keyrec files are left intact. The cleankrf command should be used in conjunction with cleanarch in order to have a consistent environment. OPTIONS
Archive-Selection Options The following options allow the user to select the archives to be cleaned. -archive directory This option specifies an archive directory to be cleaned. -defarch This option indicates that the default archive directory (named in the DNSSEC-Tools configuration file) should be cleaned. -zone zone This option indicates that zone is the only zone whose archive will be cleaned. If the archive directory is shared by other zones then their keys may also be deleted. Key-Selection Options The following options allow the user to select the keys to be deleted. -all Deletes all keys in the selected archives. This option may not be used with any other key-selection options. -days days Deletes all keys except those whose modification date is within the days full days preceding the current day. -onezone zone Only keys with zone in the key's filename are deleted. This is intended for use in cleaning a multi-zone key archive. This does not validate that zone is an actual zone. Any string can be used here. For example, using "private" will select old private key files for deletion and using "com" will select any filename that contains "com". Options for Output Control The following options allow the user to control cleanarch's output. -dirlist This option lists the selected archive directories. No other action is taken. -list This option lists the selected keys. No other action is taken. -quiet Display no output. -verbose Display verbose output. -Version Displays the version information for cleanarch and the DNSSEC-Tools package. -help Display a usage message and exit. WARNINGS
The user is advised to invest a bit of time testing this tool prior to putting it into production use. Once a key is deleted, it is gone. Some may find this to be detrimental to the health of their DNSSEC-Tools installation. COPYRIGHT
Copyright 2007-2012 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details. AUTHOR
Wayne Morrison, tewok@tislabs.com SEE ALSO
cleankrf(8), lskrf(8), zonesigner(8) Net::DNS::SEC::Tools::keyrec.pm(3), Net::DNS::SEC::Tools::rollrec.pm(3) dnssec-tools.conf(5), keyrec.pm(5), rollrec.pm(5) perl v5.14.2 2012-06-21 CLEANARCH(1p)
All times are GMT -4. The time now is 09:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy