Hello,
Alright solution:
I need to move files to a backup folder, changing the datestamp to the current day so that the file stays in the backup folder for the full 30 days before another script removes it. Obviously, any file I move in will preserve the timestamp which is what I *don't* want.... (2 Replies)
I was wondering if there was a command to move files from one directory to another subdirectory based on the timestamp, i.e. moving from directory A files that have a timestamp of before the year 2005 into directory B. Directory B is a subdirectory located in directory A. I was advised to... (4 Replies)
I want a script that will add comments to a file before check-in files. comments depend on type of files.
i have a script to list files in the directory that will be checked-in
There are xml, js, html, vm files. vm will use comments like c/c++ ( // or /*..*/)
can you help me add a comment line... (0 Replies)
Hi,
In a field, I should receive the date with time stamp in a particular field. But sometimes the vendor sends just the date or the timestamp or correctl the date×tamp. I have to figure out the the data is a date or time stamp or date×tamp.
If it is date then append "<space>00:00:00"... (1 Reply)
How to move a file with mv command by adding yesteday's date(YYYYMMDD) at the end
Example:
/a/abc.txt should be moved to the same folder /a/abc_yyyymmdd.txt
YYYYMMDD should be yesterday's date (2 Replies)
Hi all,
I have 20 files (file001.txt upto file020.txt) and I want to read them from 3rd line upto end of file (line 1002). But in the final file they should appear to start from line 1.
I need following kind of output in a single file:
Filename Line number 2ndcolumn 4thcolumn
I... (14 Replies)
Hi I have a problem, I have a large group of archive files in a folder some are later versions of the same archive, the only difference btween them is that the archiving program we use appends the name with a code for it to keep track of in its data base, and the modification date.
I am starting... (6 Replies)
Dear Experts
my scenario is as follows...
I have one source folder "Source" and 2 target folders "Target_123456" & "Target_789101". I have 2 series of files. 123456 series and 789101 series. Each series has got 3 types of fiels "Debit", "Refund", "Claims".
All files are getting... (17 Replies)
Hello,
I supposed that it was working fine but now I see that it's not working as expected.
I am running under ubuntu14.04, trusty.
My plan was to search folderA and all subdirectories and move any txt file to destination folder, folderB :
find /home/user/folderA/ -type f -iname "*.txt"... (0 Replies)
Discussion started by: baris35
0 Replies
LEARN ABOUT DEBIAN
data::printer::filter::datetime
Data::Printer::Filter::DateTime(3pm) User Contributed Perl Documentation Data::Printer::Filter::DateTime(3pm)NAME
Data::Printer::Filter::DateTime - pretty-printing date and time objects (not just DateTime!)
SYNOPSIS
In your program:
use Data::Printer filters => {
-external => [ 'DateTime' ],
};
or, in your ".dataprinter" file:
{
filters => {
-external => [ 'DateTime' ],
},
};
You can also setup color and display details:
use Data::Printer
filters => {
-external => [ 'DateTime' ],
},
color => {
datetime => 'bright_green',
}
datetime => {
show_class_name => 1, # default is 0
show_timezone => 0, # default is 1 (only works for DateTime objects)
},
};
DESCRIPTION
This is a filter plugin for Data::Printer. It filters through several date and time manipulation classes and displays the time (or time
duration) as a string.
Parsed Modules
o DateTime
o DateTime::Duration
o DateTime::Incomplete
o Time::Piece
o Date::Handler
o Date::Handler::Delta
o Date::Calc::Object
o Date::Pcalc::Object
If you have any suggestions for more modules or better output, please let us know.
SEE ALSO
Data::Printer
perl v5.14.2 2011-06-07 Data::Printer::Filter::DateTime(3pm)