Hi,
I have a coupel of files in /tmp which I have to copy to /var. But I want their name to be same as the source with date suffix.
But the problem is I don;t know the prefix of the file, I only know the suffix of file.
AAA.997
ABC.997
ADC.997
The later part 997 is constant but the... (1 Reply)
Hi,
I want to copy a some files according to the date.
lets say i want to copy file from june1st to june14th.
What is the command for that ?
Thanks,
Nayanajith. (1 Reply)
Hi I want to copy a file but append the date and time....how?
So copying the file file1.txt will have file1_20061009_0950.txt
I know the command :
date +"%Y%m%d_%H%M"
but how do i get this in the file name ?
cp file1.txt newDirectory/file1_?????????.txt
Thanx (2 Replies)
Hi,
I have a log file without date/time, and I want that everytime tail|grep find something it displays the date/time and the line. I have tried something like this command but without any luck to display the date/time:
tail -F catalina.out | sed "s/^/`date `/" | egrep ... (6 Replies)
Hi all
i am having so many files in my directory.Is there any option
to copy files based on date.
example
i am having file this
-rw-rw-r-- 1 ram user 1 Feb 2 17:12 abc
-rw-rw-r-- 1 ram user 1 Feb 2 17:12 bnw
-rwxrwxr-x 1 ram user 21122 Feb 4... (3 Replies)
Hi, im taking an entry Unix class, and as part of my lab assignment I have to copy all files in the /home/david/lab3 directory that have the file extension .save to your lab3/temp directory. I'm having trouble getting the grep to do anything worth while
I've been trying to do:
cp... (6 Replies)
Hi,
I would greatly appreciate it if someone can help me with my problem.
I have a crawler which collects spam URLs everyday & this data needs to be published in a blacklist.
Here's the catch:
The "Time To Live" (TTL) for each URL is 3 months (or whatever for that matter). If i see the... (5 Replies)
Hi All
I need to get the date from a file.
my file a.out has the below data:
INFO : LM_36435 : (10153|1400211776)
Starting execution of workflow in folder
last saved by user .
The date here is Sun Jun 17 05:00:05 2013 ,which is the system date and keep on changing everyday.
So... (8 Replies)
Can someone draw up a script that for every file, folder and subfolder and files that will copy the creation date over top of the modified date??
I know how to touch every file recursively, but no idea how to read a files creation date then use that to touch the modification date of that file,... (3 Replies)
Discussion started by: toysareforboys
3 Replies
LEARN ABOUT DEBIAN
net::hotline::fileinfoitem
Net::Hotline::FileInfoItem(3pm) User Contributed Perl Documentation Net::Hotline::FileInfoItem(3pm)NAME
Net::Hotline::FileInfoItem - File object used internally by Net::Hotline::Client
SYNOPSIS
use Net::Hotline::FileInfoItem;
$file = new Net::Hotline::FileInfoItem;
$file->name("smile");
$file->comments("A happy file.");
...
DESCRIPTION
Net::Hotline::FileInfoItem is a simple class for storing and retrieving file information, You should never have to create your own
Net::Hotline::FileInfoItem objects when using Net::Hotline::Client. Getting and (to a lesser extent) setting attributes is all that should
be necessary.
CONSTRUCTION
new Creates a new Net::Hotline::FileInfoItem object with all attributes set to undef.
METHODS
All the Net::Hotline::FileInfoItem methods are simple attribute get/set routines. If given an argument, they set an attribute. In all
cases, they return the current value of the attribute.
comment TEXT
The file comments (as seen in the Mac OS Finder).
ctime NUM
The creation time of the file, given as a Mac OS native time value. Add the constant Net::Hotline::Constants::HTLC_MACOS_TO_UNIX_TIME
to it to change it to seconds since the Unix epoch.
creator TEXT
The file creator, given as a four-letter Mac OS creator code ("TTXT", "SIT!", etc.)
name TEXT
The file name.
icon
The file icon given as a four-letter code.
mtime NUM
The modification time of the file, given as a Mac OS native time value. Add the constant
Net::Hotline::Constants::HTLC_MACOS_TO_UNIX_TIME to it to change it to seconds since the Unix epoch.
ctime NUM
The creation time of the file, given as a Mac OS native time value. Add the constant Net::Hotline::Constants::HTLC_MACOS_TO_UNIX_TIME
to it to change it to seconds since the Unix epoch.
size NUM
The size of the file in bytes.
type TEXT
The file type, given as a four-letter Mac OS type code ("TEXT", "PICT", etc.), Net::Hotline::Constants::HTLC_INFO_FOLDER_TYPE for
folders, and Net::Hotline::Constants::HTLC_INFO_FALIAS_TYPE for folder aliases.
AUTHOR
John C. Siracusa (siracusa@mindspring.com)
COPYRIGHT
Copyright(c) 1999 by John Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
perl v5.10.1 2002-11-27 Net::Hotline::FileInfoItem(3pm)