Hi:-
I need help with a script I need to modify: - what's the best/easiest way to find out the oldest file in a directory and then move this file to another directory?
Thanks, (5 Replies)
Hi all,
I am a newbie to scripting and I need your help regarding finding the oldest file in a particular directory. My intention is to remove that oldest file.
Are there any options available with the "find" command to do this..
Thanks in advance for your help
Pavan (4 Replies)
I am trying to determine the oldest and most recent files in a huge directory. I am using an ls -tr statement outside my find statement. The directory is too big and I am getting an "arg list too long" error. Is there something I can put in my find statement that doesn't create a list to... (2 Replies)
Hi ,
Please help with the following questions
1) how can i find size of a file ? i have written du -k $flname > s1 . Is this right ?
Any other better suggeastions ?
2) how do I use mv command for moving the file ? I need the syntax with some examples
3) Command for printing the total... (1 Reply)
I'm still up trying to figure this out and it is driving me nuts.
I have a log file which has a basic format of this...
2010-10-10 22:25:42
Init block 'UA Deployment Date': Dynamic refresh of repository scope variables has failed.
The ODBC function has returned an error. The database... (4 Replies)
Hello,
I have lots of sequentially numbered files which make up an image sequence.
I'm trying to do two things with it:
#1: Find gaps in the sequence and move each range of sequencial files into their own subfolder.
#2: Designate a starting point (file) and move every 24th file into... (4 Replies)
Hi
I have some files in directory and the names of files are like
jnhld_15233_2010-11-23
jnhld_15233_2007-10-01
jnhld_15233_2001-05-04
jnhld_15233_2011-11-11
jnhld_15233_2005-06-07
jnhld_15233_2000-04-01
..etc
How can i sort these files based on the date in the file name so that ... (4 Replies)
Hi,
I have two types of file names
filename1_12345 or filename1-12345 at the same time I have second type
filename2-12345 in a txt file.
I am trying to write awk script that will sort these names with below pattern
ALL file names like
filename1_12345 and filename1-12345 will go to... (1 Reply)
Hi
I am want to create a script where the file gets moved from the current folder to a folder transfer based on the oldest first. This script should run one file at a time using a loop. I want it as a loop because I want to do some processing while I have one file. Can anyone guide me on this? (2 Replies)
I have a dilemma, we have users who are copying files to "directory 1." These images have file names which include the year it was taken. I need to put together a script to do the following:
Examine the file naming convention, ensuring it's the proper format (e.g. test-1983_filename-123.tif)... (8 Replies)
Discussion started by: Nvizn
8 Replies
LEARN ABOUT HPUX
dhcpv6db2conf
dhcpv6db2conf(1M)dhcpv6db2conf(1M)NAME
dhcpv6db2conf - DHCPv6 client database converter
SYNOPSIS
[lan_interfaces]
DESCRIPTION
provides a means of translating the DHCPv6 client database, into a set of standard configuration file variables. The client database con-
sists of a series of records. Each record represents a unique lan interface and a list of attributes, which correspond to that interface.
The attributes are configuration parameters like: host's IP address, NTP server address, address of the DHCPv6 server, NIS domain name etc
for that interface. With you can list the contents of the database to the screen, create a set of configuration staging files, or execute
direct edits on existing configuration files using the values contained in the client database.
Options
allows you to specify a list of lan interfaces on the command line (e.g. whose data needs to be translated to a readable format. If no
lan interface is specified, will process the entries of all interfaces which are UP. The attributes can be selected for processing by
specifying a combination of one or more filter flags on the command line. If no filter flag is specified, all the attributes for that lan
interface will be processed.
The following options are supported:
Using the results of the specified filter, directly apply the variable
definitions to the existing configuration files (for example,
Create a set of staging files using the results of the selected filter(s).
Each variable processed will be applied to its corresponding staging configuration file.
Specifically, will generate a copy of the existing configuration file. For example, will be copied to Once this staging
file has been created, the variable that is being processed will be applied to this newly created file.
Print results to the screen (stdout), this is the default action if neither
nor are specified.
Process the INTERFACE variable set [IPV6_SECONDARY_INTERFACE_NAME, IPV6_ADDRESS, IPV6_PREFIXLEN, DHCPV6_ENABLE].
Process the DNS variable set
[domain, nameserver].
Process the SIP server address and SIP domain name information.
Process the NIS variable set
[NIS_DOMAIN, YPSET_ADDR].
Process the vendor specific information.
Print the DHCPv6 server address.
lan_interfaces lan interfaces such as whose data needs to be translated to a readable format. If not specified, will process the entries
of all interfaces which are UP.
Configuration Files and Variable Names
The following files and variables can be processed:
IPV6_SECONDARY_INTERFACE_NAME
IPV6_ADDRESS
IPV6_PREFIXLEN
DHCPV6_ENABLE
NIS_DOMAIN
YPSET_ADDR
domain / search
nameserver
EXAMPLES
To list the entire contents of the DHCP client database type:
To list only the INTERFACE variable set for type:
AUTHOR
was developed by Hewlett-Packard.
FILES
Client configuration database
SEE ALSO dhcpv6clientd(1M), dhcpv6client_ui(1), dhcpv6d(1M).
dhcpv6db2conf(1M)