Hi experts . . .
Sunsolaris 9 version
I have the script as below:
Am getting log file as : archive_today_.log
Please suggest.
##################################################
set 'date'
dd=$3
mon=$2
export mon
yyyy=$6
export yyyy
cd /oracle/P47/saparch (4 Replies)
hi
i need to rename a.txt to a_12052008.txt using the batch file
i used reanme a.txt a_%date%.txt ......but its done nothing
am using win2000 professional edition.
system date format is : The current date is: Mon 2008-05-12
can anyone help me to rename
thanks
aemu (5 Replies)
I have file called xx
Now i want to rename this file as xxYYYYMMDD_HHMIAM.xls
Here is my code..
export DATE1=`date +%Y%m%d`
mv xx xx$DATE1
This code renames as xxYYYYMMDD
Now how can i append HHMIAM at the end of the file?
Any help is appreciated... (3 Replies)
Hi
I have the data file in the one directory and i have to copy the file in the another directory with the timestamp.
EX:
/ab/cd/a.dat i need to copy this file to the another directory /ef/gh/.
while am copying i need to append the current timestamp in the file like... (3 Replies)
Hi
Am having issue on appending time stamp
I know the exact file names in the directory like
a.dat
b.dat
c.dat
e.dat
f.dat
I want to read all these file names and append the timestamp to each files like
a.dat.20090604,b.dat.20090604 and move to the different directory.
... (3 Replies)
Hi ,
I have a file with a running sequence number. I need to append a date value mmdd format on to the first column.
for e.g.: The file contains records as
001 abc
002 cde
003 edf
004 fgh
005 hik
The output should be
1111001 abc
1111002 cde
1111003 edf
1111004 ... (1 Reply)
Dear all,
I have 2 questions.
I have a file with many rows which has date of the format YYYYMMDD.
1. I need to change the date to that weeks friday date(Ex: 20120716(monday) to 20120720). Satuday/Sunday has to be changed to next week friday date too.
2. After converting the date to... (10 Replies)
Hi,
My requirement is to append a date in format DDMMYYYYHHMISS at the end of first line of file which is HEADER. I am trying command
sed -i '1s/.*/&<date_format>/' <file_name>
Where <date_format>=`date +%m%d%Y%H%M%S`
I am somehow misisng the right quotes ti get this added in above... (2 Replies)
Hello,
I have a file name in the below format and have to append the date as _$currdate.
kchik_UK_lo.txt_$currdate.
The above should be the format and I dont want to put entire filename as above in the code, but it should give me the output as the above filename.Can anyone please help... (7 Replies)
i try to set linux date & time in specific format but it keep giving me error
Example :
date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
or
date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
keep giving me this error :
date: invalid date ‘19-01-2017 00:05:01'
Please use CODE tags... (7 Replies)
Discussion started by: umen
7 Replies
LEARN ABOUT DEBIAN
http::oai::listidentifiers
HTTP::OAI::ListIdentifiers(3pm) User Contributed Perl Documentation HTTP::OAI::ListIdentifiers(3pm)NAME
HTTP::OAI::ListIdentifiers - Provide access to an OAI ListIdentifiers response
SYNOPSIS
my $r = $h->ListIdentifiers;
while(my $rec = $r->next) {
print "identifier => ", $rec->identifier, "
",
print "datestamp => ", $rec->datestamp, "
" if $rec->datestamp;
print "status => ", ($rec->status || 'undef'), "
";
}
die $r->message if $r->is_error;
METHODS
$li = new OAI::ListIdentifiers
This constructor method returns a new OAI::ListIdentifiers object.
$rec = $li->next
Returns either an HTTP::OAI::Header object, or undef, if there are no more records. Use $rec->is_error to test whether there was an
error getting the next record (otherwise things will break).
If -resume was set to false in the Harvest Agent, next may return a string (the resumptionToken).
@il = $li->identifier([$idobj])
Returns the identifier list and optionally adds an identifier or resumptionToken, $idobj. Returns an array ref of HTTP::OAI::Headers.
$dom = $li->toDOM
Returns a XML::DOM object representing the ListIdentifiers response.
$token = $li->resumptionToken([$token])
Returns and optionally sets the HTTP::OAI::ResumptionToken.
perl v5.12.4 2007-06-28 HTTP::OAI::ListIdentifiers(3pm)