06-15-2011
you mean for each date you want to display the times of records ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I've looked at several of the previous posts and can't seem to find any that pertain to my problem, I'd appreciate some help if possible.
I have a directory with numerous logs of various names all named by heading and date ie.
dog.20050529.log
dog.20050530.log
... (2 Replies)
Discussion started by: gillr
2 Replies
2. Shell Programming and Scripting
Hi,
I wrote a small perl script in unix that searches in a file and saves some information in a separate file. Since this is a log file, I would like to have the date added to file name. I have no idea where to start.
output:
log_010907.txt
thanks
ken (8 Replies)
Discussion started by: captoro
8 Replies
3. UNIX for Dummies Questions & Answers
Hi there,
I'm using terminal on mac and using the ls -l command to list all the files in a directory. However, I only want to display the date and time stamp of each file rather than permissions, owner, group etc...
Is this possible?
Many thanks in advance
Dave (2 Replies)
Discussion started by: davewg
2 Replies
4. Shell Programming and Scripting
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
5. UNIX for Dummies Questions & Answers
Morning all
Im hoping you can help me. We have a nice new oracle server :( and are needing to move some files around for EDI and BACS. The server runs windows but has an app called MKS toolkit installed which give unix commands. (Needed for the oracle stuff) I have had a go using dos commands... (2 Replies)
Discussion started by: ltodd2
2 Replies
6. Shell Programming and Scripting
How can view log messages between two time frame from /var/log/message or any type of log files.
when logfiles are very big and especially many messages with in few minutes, I would like to display log messages between 5 minute interval.
Could you pls give me the command? (1 Reply)
Discussion started by: johnveslin
1 Replies
7. Shell Programming and Scripting
To delete log files content older than 30 days and append the lastest date log file date in the respective logs
I want to write a shell script that deletes all log files content older than 30 days and append the lastest log file date in the respective logs
This is my script
cd... (2 Replies)
Discussion started by: sreekumarhari
2 Replies
8. Shell Programming and Scripting
Hi All,
i have some log files generated in a folder daily with the format
abc.def.20130306.100001
ghi.jkl.20130306.100203
abc.def.20130305.100001
ghi.jkl.20130305.100203
the format is the date followed by time . all i want is to get the files that are generated for todays... (3 Replies)
Discussion started by: mahesh300182
3 Replies
9. Shell Programming and Scripting
Hi Folks,
Need a clarification on files with date and time stamp.
Here is my requirement. There is a file created everyday with the following format "file.txt.YYYYMMDDHHMMSS".
Now i need to check for this file and if it is available then i need to do some task to the file.
I tried... (6 Replies)
Discussion started by: jayadanabalan
6 Replies
10. Shell Programming and Scripting
I am trying to compare identically named files in different directories and replace a file only with a newer version. Is there a way of doing this?
TIA (4 Replies)
Discussion started by: wbport
4 Replies
LEARN ABOUT DEBIAN
dr::tarantool::tuple
DR::Tarantool::Tuple(3pm) User Contributed Perl Documentation DR::Tarantool::Tuple(3pm)
NAME
DR::Tarantool::Tuple - tuple container for DR::Tarantool
SYNOPSIS
my $tuple = new DR::Tarantool::Tuple([ 1, 2, 3]);
my $tuple = new DR::Tarantool::Tuple([ 1, 2, 3], $space);
my $tuple = unpack DR::Tarantool::Tuple([ 1, 2, 3], $space);
$tuple->next( $other_tuple );
$f = $tuple->raw(0);
$f = $tuple->name_field;
DESCRIPTION
Tuple contains normalized (unpacked) fields. You can access the fields by their indexes (see raw function) or by their names (if they are
described in space).
Each tuple can contain references to next tuple and iterator. So If You extract more than one tuple, You can access them.
METHODS
new
Constructor.
my $t = DR::Tarantool::Tuple->new([1, 2, 3]);
my $t = DR::Tarantool::Tuple->new([1, 2, 3], $space);
unpack
Constructor.
my $t = DR::Tarantool::Tuple->unpack([1, 2, 3], $space);
raw
Returns raw data from tuple.
my $array = $tuple->raw;
my $field = $tuple->raw(0);
next
Appends or returns the following tuple.
my $next_tuple = $tuple->next;
iter
Returns iterator linked with the tuple.
my $iterator = $tuple->iter;
my $iterator = $tuple->iter('MyTupleClass', 'new');
while(my $t = $iterator->next) {
# the first value of $t and $tuple are the same
...
}
Arguments
package (optional)
method (optional, default: new)
if 'package' and 'method' are present, $iterator->next method will construct objects using "$package->$method( $next_tuple )"
AUTOLOAD
Each tuple autoloads fields by their names that defined in space.
my $name = $tuple->password; # space contains field with name 'password'
my $name = $tuple->login;
...
tuple iterators
new
my $iter = DR::Tarantool::Tuple::Iterator->new( $tuple );
my $iter = $tuple->iter; # the same
Arguments
tuple
package (optional)
method (optional, default: new)
if 'package' and 'method' are present, next method will construct objects using "$package->$method( $next_tuple )"
count
Returns count of tuples in the iterator.
my $count = $iter->count;
reset
Resets iterator (see next method).
$iter->reset;
next
Returns next element from the iterator.
my $iter = $tuple->iter;
while(my $tuple = $iter->next) {
...
}
COPYRIGHT AND LICENSE
Copyright (C) 2011 Dmitry E. Oboukhov <unera@debian.org>
Copyright (C) 2011 Roman V. Nikolaev <rshadow@rambler.ru>
This program is free software, you can redistribute it and/or
modify it under the terms of the Artistic License.
VCS
The project is placed git repo on github: https://github.com/unera/dr-tarantool/ <https://github.com/unera/dr-tarantool/>.
perl v5.14.2 2012-06-06 DR::Tarantool::Tuple(3pm)