Hi Unix gurus
This is my first post here. I have a file which looks like this:
string1,string2
,string3
,string4
...
...
I need to append all words below first line to the first line, ie
string1,string2,string3,string4,...
Bear in mind that it is not known how many lines follow... (11 Replies)
Hi all,
I have output files that are all text files with various different extensions.
So, if I submit the input file "job_name.inp", when it finishes I get an output file "job_name.dat". A typical input file looks something like this:
$CONTRL SCFTYP=RHF RUNTYP=ENERGY MAXIT=199 MULT=1... (4 Replies)
After I create printer queues in AIX, I have to append a filter file location within that printers custom file. within lets say test_queue.txt I need to find the row that starts with :699 and then I need to append on the end the string /usr/local/bin/k_portrait.sh.
Now I've gotten the sed... (2 Replies)
I am writing a code to append some numbers in the beginning of each line in all the files present in a directory. The number of files are really huge. The files are numbered as 1.sco, 2.sco, 4.sco (Note: 3.sco is missing).
The files currently look like this:
1.sco
2 3
5 6
6 7My task is to... (4 Replies)
I have 2 files that I am working with
$ cat file1
server1
server3
server5
server6
server8
$ cat file2
server1;Solaris;
server2; SLES;
server3;Linux;
server4; Solaris;
server5;SLES;
server6;SLES;
server7;Solaris;
server8;Linux; (1 Reply)
Hi Forum,
I am using the below command to find files older than x days in a directory excluding subdirectories. From the previous forums I got to know that prune command helps us not to descend in subdirectories. Though I am using it here, not getting the desired result.
cd $dir... (8 Replies)
Hi,
I have a File, which have multiple rows.
Like below
123456 Test1 FNAME JRW#$% PB MO Approver XXXXXX. YYYY
123457 Test2 FNAME JRW#$% PB MO Super XXXXXX. YYYY
123458 Test3 FNAME JRW#$% PB MO Approver XXXXXX. YYYY
I want to search a line which contains PB MO Approver and append... (2 Replies)
hi,
i need a help in the script , need to append a string at the end of each line of a files , and append the files into a single file vertically.
eg
file1 has the following columns
abc,def,aaa
aaa,aa,aaa
files 2 has the following rows and columns
abc,def,aaa
aaa,aa,aaa
i... (3 Replies)
Task: Find keywords in each line, and append at the end of line; if not found in the line, do nothing.
the code is wrong. how to make it work. thanks a lot.
cat keywords.txt | while read line; do
awk -F"|" '{if (/$line/) {print $0"$line , ";} else print;}' outfile.txt > tmp
... (9 Replies)
Hi Experts
Need help...
I am looking for a Unix script to append pipe | at the end of all the rows (except header and trailer)in all the files placed under the directory /interfaces/Temp
e.g.
Header
row1
row2
row3
Trailer
The script should read all the files under... (3 Replies)
Discussion started by: phani333
3 Replies
LEARN ABOUT SUSE
gtk2::selectiondata
Gtk2::SelectionData(3) User Contributed Perl Documentation Gtk2::SelectionData(3)NAME
Gtk2::SelectionData
HIERARCHY
Glib::Boxed
+----Gtk2::SelectionData
METHODS
scalar = $d->get_data
scalar = $d->get_data_type
scalar = $d->get_display
scalar = $d->get_format
$selection_data->set ($type, $format, $data)
o $type (Gtk2::Gdk::Atom)
o $format (integer)
o $data (Glib::UChar)
scalar = $d->get_length
pixbuf or undef = $selection_data->get_pixbuf
Since: gtk+ 2.6
boolean = $selection_data->set_pixbuf ($pixbuf)
o $pixbuf (Gtk2::Gdk::Pixbuf)
Since: gtk+ 2.6
(tree_model, path) = $selection_data->get_row_drag_data
If $selection_data is not of target type GTK_TREE_MODEL_ROW then the return is an empty list.
boolean = $selection_data->set_row_drag_data ($tree_model, $path)
o $tree_model (Gtk2::TreeModel)
o $path (Gtk2::TreePath)
scalar = $d->get_selection
scalar = $d->get_target
list = $selection_data->get_targets
Gets the contents of selection_data as an array of targets. This can be used to interpret the results of getting the standard TARGETS
target that is always supplied for any selection.
Returns a list of GdkAtoms, the targets.
boolean = $selection_data->targets_include_image ($writable)
o $writable (boolean)
Since: gtk+ 2.6
boolean = $selection_data->targets_include_rich_text ($buffer)
o $buffer (Gtk2::TextBuffer)
Since: gtk+ 2.10
boolean = $selection_data->targets_include_text
boolean = $selection_data->targets_include_uri
Since: gtk+ 2.10
string = $selection_data->get_text
boolean = $selection_data->set_text ($str, $len=-1)
o $str (string)
o $len (integer)
list = $selection_data->get_uris
Since: gtk+ 2.6
boolean = $selection_data->set_uris (...)
o ... (list) of strings
Since: gtk+ 2.6
SEE ALSO
Gtk2, Glib::Boxed
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::SelectionData(3)