I have one file with below entry. There are multiple entries, but for sample I used just three lines.
my requirment is to create a script by which it will pull only those entries which modification time is greater than 2 weeks (or 15 days). if I run script today, it will compare date from today and pull entriies which modification time is greater than 2 weeks.
Is there any command or combination of commands which can be used for this activity?
Input
Code:
Login = user1
Modification Time = July 27, 2015 4:57:55 AM EDT
Login = user2
Modification Time = June 24, 2015 5:39:23 AM EDT
Login = user3
Modification Time = Aug 5, 2015 4:53:53 AM EDT
Required Output
Code:
Login = user1
Modification Time = July 27, 2015 4:57:55 AM EDT
Login = user2
Modification Time = June 24, 2015 5:39:23 AM EDT
Below is Output of date command in my server
Code:
> date
Mon Aug 17 03:46:31 EDT 2015
Last edited by vbe; 08-17-2015 at 05:35 AM..
Reason: code tags please. not HTML...
I want to get previous date from date command. I am using ksh shell.
Exmp:
today is 2008.09.04
I want the result : 2008.09.03
Please help.
Thanks in advance. (4 Replies)
I did some searches, but couldn't really find what I'm looking for. I have a file formatted as below:
BOF ABC CO - XYZ COMM DATA OF 07/05/2011
EBA00000001 sdfa rtyus uyml
EBB00000001 54682 984w3
EBA00000002 mkiyuasdf 98234
I want to pull the date from the header record and add it... (4 Replies)
hey guys.
the following line is a line taken from apache's access_log
10.10.10.10 - jdoe "GET /images/down.gif HTTP/1.1" 304
I'm concerned about the field that has the date and time in it.
if assuming the delimiter in the file is a space, then the fourth field will always have the date... (5 Replies)
Hi
I want to get tomorrow and yesterday date from date command. My shell is KSH and server is AIX. I tried several options, but unable to do. Please help on this.
Regards
Rajesh (5 Replies)
Hi,
In order to make our debugging easier in log files, I need this script.
My log file will be structured like this :
------Invoking myfile -param:start_time=1371150900000 -param:end_time=1371151800000 for 06/14/2013
<multiple lines here>
.....
- Step Sybase CDR Table.0 ended... (3 Replies)
Hi all,
Need an urgent help on the below scenario.
script:
awk -F","
'BEGIN { #some variable assignment}
{ #some calculation and put values in array}
END {
year=#getting it from array and assume this will be 2014
month=#getting it from array and this will be 05
date=#... (7 Replies)
HI,
Can anyone tell me how to pull the date and file name separated by a space using the find command or any other command. I want to look through several directories and based on a date timeframe (find -mtime -7), output the file name (without the path) and the date(in format mmddyyyy) to a... (2 Replies)
current date command runs well
awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
subtract 30 days fails
awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
Discussion started by: kmarcus
20 Replies
LEARN ABOUT ULTRIX
named-xfer
named-xfer(8) System Manager's Manual named-xfer(8)Name
named-xfer - pull BIND/Hesiod zones from another server
Syntax
/usr/etc/named-xfer -z zone_to_transfer -f db_file -s serial_no [ -d debug_level ] [ -l debug_log_file ] [ -t trace_file ] [ -p port ] [ -n
] [ -a auth_type.auth_ver ] servers...
Description
The transfer daemon, is a server that is usually run by the daemon, but it can also be run manually with the given arguments. The transfer
daemon runs on a BIND/Hesiod secondary server and pulls BIND/Hesiod zones from a primary server. This daemon is not run by default, nor
can it be started up from
Options-z zone_to_transfer
This option is required to pull a zone. The zone_to_transfer argument specifies the name of the BIND/Hesiod zone that
the daemon will transfer, for example, dec.com.
-f db_file This option is required to pull a zone. The db_file argument specifies the name of the file into which the pulled zone
information is placed.
-s serial_no This option is required to pull a zone. The serial_no argument should be set to the current serial number of the SOA
record for the zone zone_to_transfer. If serial_no is set to 0, the zone is always pulled.
-d debug_level The debug_level argument sets the debug level and determines the amount of debug information to be displayed.
-l debug_log_file The debug_log_file argument specifies the file that will contain any debug messages from the zone pull.
-t trace_file The trace_file argument specifies the file that will contain a trace from the zone pull.
-p port The port argument specifies the port that will be used instead of the default nameserver port listed in
-n This option must be used when the daemon is running in the network safe mode. It indicates that the zone pull must be
authenticated.
-a auth_type.auth_ver
This option must be used if the daemon is running in the network safe mode. The auth_type argument indicates what type
of authentication to use and the auth_ver argument indicates what version of the authentication type to use. Currently,
the auth_type must be "kerberos" and the auth_ver must be "one".
servers... The servers argument is a list of Internet addresses from which to pull a zone. If the first host cannot be ddreached,
the transfer daemon will try to pull the zone from the next host listed.
See Alsoservices(5), named(8), kerberos(8krb)
Guide to the BIND/Hesiod Service
Guide to Kerberos
named-xfer(8)