Hi friends,
I am getting some trubles in folder reading. I am having 10 subfolders inside server7 folder. i wanna to read a subfolder name first and check if the foldername gets started with "http". if so , i need to read a file inside that folder. This willl continue for... (1 Reply)
I am adding some individual files to a tar archive and would like them to be added to the archive without any directory hierarchy, even though the files themselves exist in levels of hierarchy. Unfortunately, tar seems to always preserve the directory hierarchy when it adds the files.
Here is... (2 Replies)
Hi,
I have the following subfolder with files:
/data/a/1/xxx.txt
/data/b/2/yyy.txt
/data/c/3/zzz.txt
And i have a set of new folders which have exactly the same structure as above but different disk without the files:
/data_02/a/1/
/data_02/b/2/
/data_02/c/3/
Now i would like to... (6 Replies)
I have directory with shorcuts of files.
for example:
gara@yn\short\name1 ( shortcut to gara@yn\FOLDER\OPT\GARA\1.jpg )
gara@yn\short\name2 ( shortcut to gara@yn\FOLDER\OPT\GARA\11.jpg )
gara@yn\short\name3 ( shortcut to gara@yn\MARA\URSA\2.jpg )
gara@yn\short\name4 ( shortcut to... (6 Replies)
Hi folks,
I have an query that is let say i have to search in an xml file an tag that is <abcdef> now this xml file is at /opt/usr/local so one fastest way to achieve this is go to this location by cd /opt/usr/local and then do grep like this... grep -i abcdef but for this I must know the... (4 Replies)
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
The bash executes but returns no results and the set -xv showed while the $run variable in blue, was extracted correctly, the $match value in green, was not, rather both values in home/cmccabe/Desktop/f1 were extracted not just the matching.
There will always be an exact match from the $run to... (7 Replies)
Discussion started by: cmccabe
7 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)