Sponsored Content
Operating Systems HP-UX HP/UX command to pull file name/date based on date Post 302965754 by lnemitz on Tuesday 2nd of February 2016 03:30:49 PM
Old 02-02-2016
HP/UX command to pull file name/date based on date

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 file. I was able to pull the file name with other file information but it had the entire path. If I tried to use the xargs -n 1 basename, I only pull the filename.

I'm trying to pull this information into a text file to pass along to a sql script to load this information into an oracle table.

Thanks,

Linda
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Processing a log file based on date/time input and the date/time on the log file

Hi, I'm trying to accomplish the following and would like some suggestions or possible bash script examples that may work I have a directory that has a list of log files that's periodically dumped from a script that is crontab that are rotated 4 generations. There will be a time stamp that is... (4 Replies)
Discussion started by: primp
4 Replies

2. UNIX for Dummies Questions & Answers

Need to pull Yesterdays Date...

I tried this and it works for the most part, but if the date is 20090301, it displays 20090300. YESTERDAY=$((`date +%Y%m%d` -1)) (2 Replies)
Discussion started by: cards0622
2 Replies

3. Shell Programming and Scripting

Get the oldest date based on date in the filename

I am using ksh93 on Solaris. Ok, this may seem like a simple request at first. I have a directory that contains sets of files with a YYYYMMDD component to the name, along with other files of different filespecs. something like this: 20110501_1.dat 20110501_2.dat 20110501_3.dat... (2 Replies)
Discussion started by: gary_w
2 Replies

4. UNIX for Dummies Questions & Answers

pull date from header and append to all records

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)
Discussion started by: keeferb
4 Replies

5. Shell Programming and Scripting

Access log field - using awk to pull date/time

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)
Discussion started by: SkySmart
5 Replies

6. UNIX for Dummies Questions & Answers

Looking for command line to find dirs based on size and date

Hi, My first time on this site, please excuse me if I've come to the wrong forum. I'm fairly new to Unix/Linux and hoping you can help me out. I'm looking for a command line that will return a list of directories that are larger than 50M and older than 2 days. I thought it may be... (6 Replies)
Discussion started by: Wisconsingal
6 Replies

7. UNIX for Dummies Questions & Answers

Copy log based on from-date and to-date

Hi all, i go a customer support requirement where i need to scan several files based on from/to date like 1-oct to 2-oct please help... (3 Replies)
Discussion started by: AbhiJ
3 Replies

8. Shell Programming and Scripting

Script to determine Date,TotalFile,total size of file based on date

I have file listed like below -rw-r--r--+ 1 test test 17M Nov 26 14:43 test1.gz -rw-r--r--+ 1 test test 0 Nov 26 14:44 test2.gz -rw-r--r--+ 1 test test 0 Nov 27 10:41 test3.gz -rw-r--r--+ 1 test test 244K Nov 27 10:41 test4.gz -rw-r--r--+ 1 test test 17M Nov 27 10:41 test5.gz I... (5 Replies)
Discussion started by: krish2014
5 Replies

9. UNIX for Dummies Questions & Answers

Find the count of files by last created date based on the given date range

My unix version is IBM AIX Version 6.1 I tried google my requirement and found the below answer, find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20" But newer command is not working in AIX version 6.1 unix I have given my requirement below: Input: atr files: ... (1 Reply)
Discussion started by: yuvaa27
1 Replies

10. Shell Programming and Scripting

Command to pull date

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... (4 Replies)
Discussion started by: anshu ranjan
4 Replies
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 Also
       services(5), named(8), kerberos(8krb)
       Guide to the BIND/Hesiod Service
       Guide to Kerberos

																     named-xfer(8)
All times are GMT -4. The time now is 07:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy