03-02-2007
appending timestamp to a file
hi freinds,
i need to append timestamp to a file name to make it unique...
do we have any command in unix to do
please help
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I've a file in the following format
1999-APR-8 17:31:06 1500 3 45
1999-APR-8 17:31:15 1500 3 45
1999-APR-8 17:31:25 1500 3 45
1999-APR-8 17:31:30 1500 3 45
1999-APR-8 17:31:55 1500 3 45
1999-APR-8 17:32:06 1500 3 ... (1 Reply)
Discussion started by: vaibhavkorde
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am trying to insert a timestamp after all the file names in a folder,after the timestamp is created in the filename the file size is becoming zero bytes.
please tell me where I am doing it wrong.
I have declared the variable in starting of my script.
timestamp=`date... (1 Reply)
Discussion started by: shruthidwh
1 Replies
3. Shell Programming and Scripting
I am having 6 files named file1,file2....file6 and i need to append number of lines in each file to begining of the file. For example,
If file 1 contains
a
b
c
d
then after adding new line file1 should contain
4
a
b
c
d
Thanks in advance. (2 Replies)
Discussion started by: akhay_ms
2 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix programming. I am trying for a requirement and the requirement goes like this.....
I have a test folder. Which tracks log files. After certain time, the log file is getting overwritten by another file (randomly as the time interval is not periodic). I need to preserve... (2 Replies)
Discussion started by: mailsara
2 Replies
5. Shell Programming and Scripting
I have a statistical file populating every minute as below:
2011-11-11-1108 1955 891
2011-11-11-1109 2270 1049
2011-11-11-1110 1930 904
2011-11-11-1111 2030 931
2011-11-11-1112 1944 900
2011-11-11-1113 1922 875
Instead of having the date and time in the given format (2011-11-11-1113) I... (10 Replies)
Discussion started by: thinktank
10 Replies
6. Shell Programming and Scripting
I need to be able to identify files with file timestamps greater than a given timestamp.
I am using the following solution, although it appears to compare files at the "seconds" granularity and I need it at the milliseconds. When I tested my solution, it missed files that had timestamps... (3 Replies)
Discussion started by: nkm0brm
3 Replies
7. Shell Programming and Scripting
Version Info
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
$
$ echo $0
-ksh
I was trying to append date to the file name. The following syntax has worked
$ touch HELLO-`date '+%d-%b-%Y'`.txt
$ ls -alrt HELL*
-rw-r--r-- 1 rlapp oinstall 0 Feb 20... (2 Replies)
Discussion started by: John K
2 Replies
8. Shell Programming and Scripting
Hi Friends,
I have the following logfile. Currently time in india is 07/31/2014 12:33:34 and i have the following content in logfile. I want to display only those entries which contain string 'Exception' within last 3 hours. In this case, it would be the last line only
I can get the... (12 Replies)
Discussion started by: srkmish
12 Replies
9. Shell Programming and Scripting
Hello ,
I am working on AIX. I have to convert Unix timestamp to normal timestamp. Below is the file. The Unix timestamp will always be preceded by
EFFECTIVE_TIME as first field as shown and there could be multiple EFFECTIVE_TIME in the file : 3.txt
Contents of... (6 Replies)
Discussion started by: rahul2662
6 Replies
10. Shell Programming and Scripting
So basically I have a log file and each line in this log file starts with a timestamp:
MON DD HH:MM:SS
SEP 15 07:30:01
I need to grep all the lines between last hour timestamp and current timestamp. Then these lines will be moved to a tmp file from which I will grep for particular strings. ... (1 Reply)
Discussion started by: nms
1 Replies
LEARN ABOUT DEBIAN
gtk2::recentinfo
Gtk2::RecentInfo(3pm) User Contributed Perl Documentation Gtk2::RecentInfo(3pm)
NAME
Gtk2::RecentInfo - wrapper for GtkRecentInfo
HIERARCHY
Glib::Boxed
+----Gtk2::RecentInfo
METHODS
timestamp = $info->get_added;
timestamp = $info->get_modified;
timestamp = $info->get_visited;
cut
integer = $info->get_age
(exec, count, timestamp) = $info->get_application_info ($app_name)
o $app_name (string)
(applications) = $info->get_applications
string = $info->get_description
string = $info->get_display_name
boolean = $info->exists
(groups) = $info->get_groups
boolean = $info->has_application ($app_name)
o $app_name (string)
boolean = $info->has_group ($group_name)
o $group_name (string)
pixbuf = $info->get_icon ($size)
o $size (integer)
boolean = $info->is_local
string = $info->last_application
boolean = $info->match ($other_info)
o $other_info (Gtk2::RecentInfo)
string = $info->get_mime_type
unix timestamp = $info->get_modified
boolean = $info->get_private_hint
string = $info->get_short_name
string = $info->get_uri_display
string = $info->get_uri
unix timestamp = $info->get_visited
SEE ALSO
Gtk2, Glib::Boxed
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.14.2 2012-05-27 Gtk2::RecentInfo(3pm)