I have a program that will export my data to a single file, but it assigns a file name that is overridden every time I run the program. I need to change the file name to have a sequential number in the filename.
How do I rename a file so that the filename contains the system date and time. I want... (5 Replies)
I have a directory with following files in it
ABC.000.DAT
ABC.001.DAT
ABC.002.DAT
ABC.003.DAT
I want to insert time and date stamp in file names like
ABC.000.YYYYMMDDHHMM.DAT
I able to insert the time and date stamp at the end of filename
Kindly help (1 Reply)
Hi,
I operate and use HF radars along the California coast for ocean surface currents. The devices use Mac OS as the control and logging software. The software generates thousands of files a week and while I've used PERL in the past to solve the problems of finding files I come to realize some... (6 Replies)
Hello,
I need to create a shell script that appends a filename to create a name with the date and time appended that is guaranteed to not exist. That is, the script insures you will not overwrite a file with the same name. I am lost with this one. I know I need to use date but after that I am... (3 Replies)
Hi,
There are similar kind of posts, but none seems like working for me. Please correct me if I'm wrong.
I need append/rename file abc.txt with file processed date and time like abc_systemdatetimestamp.txt
and move it to different folder.
for example I have
/source/data/abc.txt
... (1 Reply)
Hi folks,
I have a little problem, that is kinda bugging me :( ...
I have a logfile, that looks kinda "crippled" in the raw format ...
So far, I've managed, to get it in a format like this:
PRI_PTA01,2W,30,30,0,0,0,0,0,0,0,0,0,0,0,0... (5 Replies)
I'm trying to take mrt output and put it at the top of a file along with the date and time. I was able to do it at the bottom of the file with the following
printf "********** $(date) **********\n\n" >> $OUTPUT_PATH/$HOSTNAME
mtr -r -w -c 10 $HOSTADDRESS >> $OUTPUT_PATH/$HOSTNAME
printf... (2 Replies)
hi
i want to validate the date and time in filename
filename : mohan.moh.ccyymmdd.ccyymmdd.hhmmss.txt
mohan_moh.20151222.20151222.122442.txt
i want code that check that date given in filename 20151222 in this format ccyymmdd else it mark file is not valid used in my OS detail is AIX 6... (12 Replies)
Hi,
I'm totally new in sell script and working with a shell code. I want to extract the date and time from the filenames. The filenames are different but all of them begins with WI_ SCOPE_:
WI_SCOPE_DATA_CHANGE_2017-09-12_15-30-40.txt
WI_SCOPE_BACK_COMPLETE_QUEUE_2017-09-12_15-31-40.txt... (5 Replies)
Hi,
I am facing one scenario in which I need to extract exact position of date and time from the name of the files. For example, Below is the record in which I need to extract position of YYYYMMDD,HHMISS and YYMMDD. Date and time variables can come more than once. I need to use these position... (13 Replies)
Discussion started by: Prathmesh
13 Replies
LEARN ABOUT SUSE
gtk2::treeselection
Gtk2::TreeSelection(3) User Contributed Perl Documentation Gtk2::TreeSelection(3)NAME
Gtk2::TreeSelection
HIERARCHY
Glib::Object
+----Gtk2::TreeSelection
METHODS
integer = $selection->count_selected_rows
boolean = $selection->iter_is_selected ($iter)
o $iter (Gtk2::TreeIter)
selectionmode = $selection->get_mode
$selection->set_mode ($type)
o $type (Gtk2::SelectionMode)
boolean = $selection->path_is_selected ($path)
o $path (Gtk2::TreePath)
$selection->select_all
$selection->set_select_function ($func, $data=undef)
o $func (scalar)
o $data (scalar)
$selection->select_iter ($iter)
o $iter (Gtk2::TreeIter)
$selection->select_path ($path)
o $path (Gtk2::TreePath)
$selection->select_range ($start_path, $end_path)
o $start_path (Gtk2::TreePath)
o $end_path (Gtk2::TreePath)
$selection->selected_foreach ($func, $data=undef)
o $func (subroutine)
o $data (scalar)
Call $func on every selected row in $selection's view.
iter = $tree_selection->get_selected
(model, iter) = $tree_selection->get_selected
Since most of the time you are only interested in the iter, "get_selected" returns only the iter in scalar context.
@paths = $selection->get_selected_rows
Returns the Gtk2::TreePath of each selected row, or an empty list if no rows are selected. The model is not returned, as documented in the
C API reference. To get the model, try "$selection->get_tree_view->get_model".
treeview = $selection->get_tree_view
$selection->unselect_all
$selection->unselect_iter ($iter)
o $iter (Gtk2::TreeIter)
$selection->unselect_path ($path)
o $path (Gtk2::TreePath)
$selection->unselect_range ($start_path, $end_path)
o $start_path (Gtk2::TreePath)
o $end_path (Gtk2::TreePath)
Since: gtk+ 2.2
scalar = $selection->get_user_data
SIGNALS
changed (Gtk2::TreeSelection)
ENUMS AND FLAGS
enum Gtk2::SelectionMode
o 'none' / 'GTK_SELECTION_NONE'
o 'single' / 'GTK_SELECTION_SINGLE'
o 'browse' / 'GTK_SELECTION_BROWSE'
o 'multiple' / 'GTK_SELECTION_MULTIPLE'
o 'extended' / 'GTK_SELECTION_EXTENDED'
SEE ALSO
Gtk2, Glib::Object
COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.12.1 2010-07-05 Gtk2::TreeSelection(3)