11-02-2011
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have an input file like:
111
abcdefgh
asdfghjk
dfghjkl
222
aaaaaaa
bbbbbb
333
djfhfgjktitjhgfkg
444
djdhfjkhfjkghjkfg
hsbfjksdbhjkgherjklg
fjkhfjklsahjgh
fkrjkgnj
I want to read this input file and make separate output files with the header as numric value like "111"... (9 Replies)
Discussion started by: saltysumi
9 Replies
2. Shell Programming and Scripting
Hi
extending to one of my previous posted query ....
I am using
nawk -v invar1="$aa" '{print > ("ABS\_"((/\|/)?"A\_":"B\_")invar1"\_NETWORKID.txt")}' spfile.txt
to get 2 different files based on split condition i.e. "|"
Similar to invar1 variable in nawk I also need one more variable... (18 Replies)
Discussion started by: shekharjchandra
18 Replies
3. UNIX for Advanced & Expert Users
Hi,
I have a requiement where in i will get a single file but there will be mutiple headers.
Suppose say for eg:
Header1
Data...
Data...
Header2
Data..
Data..
Header3
Data..
Data..
I want to split each with the corresponding data into a single file.
Please let me know how... (1 Reply)
Discussion started by: weknowd
1 Replies
4. Shell Programming and Scripting
I have a bif text file with the following format:
d1_03 fr:23
d1_03 fr:56
d1_03 fr:67
d1_03 fr:78
d1_01 fr:35
d1_01 fr:29
d1_01 fr:45
d2_09 fr:34
d2_09 fr:78
d3_98 fr:90
d3_98 fr:104
d3_98 fr:360
I have like thousands of such lines
I want to reformat this file based on column 1... (3 Replies)
Discussion started by: Lucky Ali
3 Replies
5. Shell Programming and Scripting
I was given a data file that I need to split into multiple lines/records based on a key word. The problem is that it is 2.5GB or bigger and everything I try in perl or sed causes a Segmentation fault. Can someone give me some other ideas.
The data is of the form:... (5 Replies)
Discussion started by: leolson
5 Replies
6. Shell Programming and Scripting
I have a file in unix with sample data as follows :
--------------------------------------------------------------
--------------------------------------------------------------
{30001002|XXparameter|Layout|$
I want this file to be splitted into different files and corresponding to the sample... (54 Replies)
Discussion started by: Ravindra Swan
54 Replies
7. Shell Programming and Scripting
Hi Friends ,
Please guide me with the code to extract multiple files from one file .
The File Looks like ( Suppose a file has 2 tables list ,column length may vary )
H..- > File Header....
H....- >Table 1 Header....
D....- > Table 1 Data....
T....- >Table 1 Trailer....
H..-> Table 2... (1 Reply)
Discussion started by: AspiringD
1 Replies
8. Shell Programming and Scripting
hdr=$(cut -c1 $path$file|head -1)#extract header”H”
trl=$(cut -c|path$file|tail -1)#extract trailer “T”
SplitFile=$(cut -c 50-250 $path 1$newfile |sed'$/ *$//' head -1')# to trim white space and extract table name
If; then # start loop if it is a header
While read I #read file
Do... (4 Replies)
Discussion started by: SwagatikaP1
4 Replies
9. Shell Programming and Scripting
Hi,
I have 2 csv/txt files with single columns. I am trying to merge them using paste, but its not working..
output3.csv:
flowerbomb
everlon-jewelry
sofft
steve-madden
dolce-gabbana-watchoutput2.csv:
http://www1.abc.com/cms/slp/2/Flowerbomb
http://www1.abc.com/cms/slp/2/Everlon-Jewelry... (5 Replies)
Discussion started by: ajayakunuri
5 Replies
10. Shell Programming and Scripting
Hi,
I'm having a xml file with multiple xml header. so i want to split the file into multiple files.
Sample.xml consists multiple headers so how can we split these multiple headers into multiple files in unix.
eg :
<?xml version="1.0" encoding="UTF-8"?>
<ml:individual... (3 Replies)
Discussion started by: Narendra921631
3 Replies
LEARN ABOUT SUSE
gtk2::gdk::display
Gtk2::Gdk::Display(3) User Contributed Perl Documentation Gtk2::Gdk::Display(3)
NAME
Gtk2::Gdk::Display
HIERARCHY
Glib::Object
+----Gtk2::Gdk::Display
METHODS
$display->beep
$display->close
device = $display->get_core_pointer
$display->set_cursor_theme ($theme, $size)
o $theme (string)
o $size (integer)
Since: gtk+ 2.8
integer = $display->get_default_cursor_size
Since: gtk+ 2.4
display or undef = Gtk2::Gdk::Display->get_default
window = $display->get_default_group
Since: gtk+ 2.4
screen = $display->get_default_screen
$display->set_double_click_distance ($distance)
o $distance (integer)
Since: gtk+ 2.4
$display->set_double_click_time ($msec)
o $msec (integer)
event = $display->get_event
$display->flush
Since: gtk+ 2.4
$display->grab
$display->keyboard_ungrab ($time_)
o $time_ (unsigned)
list = $display->list_devices
Returns a list of Gtk2::Gdk::Devices
(width, height) = $display->get_maximal_cursor_size
Since: gtk+ 2.4
integer = $display->get_n_screens
string = $display->get_name
display or undef = Gtk2::Gdk::Display->open ($display_name)
o $display_name (string or undef)
event = $display->peek_event
list = $display->get_pointer
boolean = $display->pointer_is_grabbed
$display->pointer_ungrab ($time_)
o $time_ (unsigned)
$display->put_event ($event)
o $event (Gtk2::Gdk::Event)
$display->register_standard_event_type ($event_base, $n_events)
o $event_base (integer)
o $n_events (integer)
Since: gtk+ 2.4
boolean = $display->request_selection_notification ($selection)
o $selection (Gtk2::Gdk::Atom)
Since: gtk+ 2.6
screen = $display->get_screen ($screen_num)
o $screen_num (integer)
string = $display->get_startup_notification_id
Since: gtk+ 2.12
$display->store_clipboard ($clipboard_window, $time_, ...)
o $clipboard_window (Gtk2::Gdk::Window)
o $time_ (unsigned)
o ... (list) of Gtk2::Gdk::Atom's
Since: gtk+ 2.6
boolean = $display->supports_clipboard_persistence
Since: gtk+ 2.6
boolean = $display->supports_composite
Since: gtk+ 2.12
boolean = $display->supports_cursor_alpha
Since: gtk+ 2.4
boolean = $display->supports_cursor_color
Since: gtk+ 2.4
boolean = $display->supports_input_shapes
Since: gtk+ 2.10
boolean = $display->supports_selection_notification
Since: gtk+ 2.6
boolean = $display->supports_shapes
Since: gtk+ 2.10
$display->sync
$display->ungrab
unsigned = $display->get_user_time
Since: gtk+ 2.8
$display->warp_pointer ($screen, $x, $y)
o $screen (Gtk2::Gdk::Screen)
o $x (integer)
o $y (integer)
Since: gtk+ 2.8
(window, win_x, win_y) = $display->get_window_at_pointer ($display)
SIGNALS
closed (Gtk2::Gdk::Display, boolean)
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::Gdk::Display(3)