02-20-2014
When you are in the command mode.
Input these
:g/^aternqaco\./d
This User Gave Thanks to Lucas_0418 For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file which has some lines starting with a particular word. I would like to delete 5 lines before each such line containing that particular word.
eg:
line1
line2
line3
line4
line5
line6
"particular word"...
I would like to delete line2-line6 and all such occurences in that... (4 Replies)
Discussion started by: ramu_1980
4 Replies
2. UNIX for Dummies Questions & Answers
I have a directory full of text data files.
Unfortunately I need to get rid of the 7th and 8th line from them all so that I can input them into a GIS application.
I've used an awk script to do one at a time but due to the sheer number of files I need some kind of loop mechanism to automate... (3 Replies)
Discussion started by: vrms
3 Replies
3. Shell Programming and Scripting
Hi,
I'am working under unix solaris
I have a text file with set of lines, each set of lines (BLOCK) have
three fixed lines :
Between SECND line and THEND we have N lines, N differ from a block to another
sample :
i have to make a script wich delete each 3 fixed lines if N=0... (3 Replies)
Discussion started by: salbanito
3 Replies
4. Shell Programming and Scripting
Hello friends,
I searched in forums for similar threads but what I want is to have a single awk code to perform followings;
I have a big log file going like this;
...
7450494 1724465 -47 003A98B710C0
7450492 1724461 -69 003A98B710C0
7450488 1724459 001DA1915B70 trafo_14:3
7450482... (5 Replies)
Discussion started by: enes71
5 Replies
5. Shell Programming and Scripting
I want to delete all lines from a file (orig_file) that contain the regex values (bad_inv_list)
I tried a for each loop with sed but it isn't working
for file in `cat bad_inv_list`;
do
sed '/$file/d' orig_file > pared_down_file.1
mv pared_down_file.1 orig_file
done
I've added... (2 Replies)
Discussion started by: verge
2 Replies
6. Shell Programming and Scripting
Hello, I have a file like this one:
03-07-2011 sunz02 message1
03-07-2011 sunz02 message2
03-07-2011 sunz02 message3
01-07-2011 sunz02 message1
01-07-2011 sunz02 message2
01-07-2011 sunz02 ... (1 Reply)
Discussion started by: asanchez
1 Replies
7. Shell Programming and Scripting
Hello, I have a file like:
26-07-2011 sunz02 message1
26-07-2011 sunz02 message2
26-07-2011 sunz02 message3
15-07-2011 sunz02 message1
15-07-2011 sunz02 message2
15-07-2011 sunz02 message3... (5 Replies)
Discussion started by: asanchez
5 Replies
8. Shell Programming and Scripting
Hello,
I have a file filled with dates, such as:
04-08-2011 message
04-08-2011 message
03-08-2011 message
01-08-2011 message
31-07-2011 message
24-07-2011 message
15-07-2011 message
13-12-2008 message
26-11-2007 message
And I want to delete those lines whose date is older than 10... (5 Replies)
Discussion started by: asanchez
5 Replies
9. Shell Programming and Scripting
I have a set of data as below:
The first field, $1 represent "|".
The $3 (3rd field) and $6 (6th field) in my data file represent "number-molecule" which has arrangement as below:
1 2 3 4 5 6 7 8
9 10 11 12 13 14 15 16
17 18 19 20 21 ... (9 Replies)
Discussion started by: vjramana
9 Replies
10. Shell Programming and Scripting
Hi,
I have a file with 20 columns of data and hundreds of lines of the same format.
Here is an example line. The data repeats underneath with the same format.
15 1 4 GLY - 1 65 LYSH 23 N - 24 H - 634 O 0.188 157.552 487 48.70I have been sorting this data by hand but I was wondering if I... (3 Replies)
Discussion started by: livbaddeley
3 Replies
LEARN ABOUT SUSE
gtk2::gdk::input
Gtk2::Gdk::Input(3) User Contributed Perl Documentation Gtk2::Gdk::Input(3)
NAME
Gtk2::Gdk::Input
METHODS
Gtk2::Gdk::Input->set_extension_events ($window, $mask, $mode)
o $window (Gtk2::Gdk::Window)
o $mask (Gtk2::Gdk::EventMask)
o $mode (Gtk2::Gdk::ExtensionMode)
ENUMS AND FLAGS
flags Gtk2::Gdk::EventMask
o 'exposure-mask' / 'GDK_EXPOSURE_MASK'
o 'pointer-motion-mask' / 'GDK_POINTER_MOTION_MASK'
o 'pointer-motion-hint-mask' / 'GDK_POINTER_MOTION_HINT_MASK'
o 'button-motion-mask' / 'GDK_BUTTON_MOTION_MASK'
o 'button1-motion-mask' / 'GDK_BUTTON1_MOTION_MASK'
o 'button2-motion-mask' / 'GDK_BUTTON2_MOTION_MASK'
o 'button3-motion-mask' / 'GDK_BUTTON3_MOTION_MASK'
o 'button-press-mask' / 'GDK_BUTTON_PRESS_MASK'
o 'button-release-mask' / 'GDK_BUTTON_RELEASE_MASK'
o 'key-press-mask' / 'GDK_KEY_PRESS_MASK'
o 'key-release-mask' / 'GDK_KEY_RELEASE_MASK'
o 'enter-notify-mask' / 'GDK_ENTER_NOTIFY_MASK'
o 'leave-notify-mask' / 'GDK_LEAVE_NOTIFY_MASK'
o 'focus-change-mask' / 'GDK_FOCUS_CHANGE_MASK'
o 'structure-mask' / 'GDK_STRUCTURE_MASK'
o 'property-change-mask' / 'GDK_PROPERTY_CHANGE_MASK'
o 'visibility-notify-mask' / 'GDK_VISIBILITY_NOTIFY_MASK'
o 'proximity-in-mask' / 'GDK_PROXIMITY_IN_MASK'
o 'proximity-out-mask' / 'GDK_PROXIMITY_OUT_MASK'
o 'substructure-mask' / 'GDK_SUBSTRUCTURE_MASK'
o 'scroll-mask' / 'GDK_SCROLL_MASK'
o 'all-events-mask' / 'GDK_ALL_EVENTS_MASK'
enum Gtk2::Gdk::ExtensionMode
o 'none' / 'GDK_EXTENSION_EVENTS_NONE'
o 'all' / 'GDK_EXTENSION_EVENTS_ALL'
o 'cursor' / 'GDK_EXTENSION_EVENTS_CURSOR'
SEE ALSO
Gtk2
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::Input(3)