Is there a way to grep for something and then print out 10 lines after it.
for example if I want to grep for a word, then output the following 10 or whatever number of lines after the word. (5 Replies)
Hello.
I have a dir of 1500+ dir. In these dirs is a file host, with a tag <x_tag>.
I need to :
1. grep for all dir that contain this host file that contain <x_tag>
2. print a list of these host files containing <x_tag>
is this better to egrep this? (5 Replies)
Using shell scripts, I use grep to find the word “error” in a log file:
grep error this.log.
How can I print or get the line 3 lines below the line that word “error” is located?
Thanks in advance for your response. (9 Replies)
I found another problem with my disk-adding script today. When looking for disks, I use grep.
When I grep for the following disk sizes:
5242880
I also pick up these as well:
524288000
How do I specifically pick out one or the other, using grep, without resorting to the -v option?
... (9 Replies)
Hi All,
I was recently helped out 'big time' with my last post on changing multiple file formats (thx, scott1256ca and bakunin)!
My new question is about selecting and displaying columns in a file using (possibly) grep. Several of my data files are spreadsheet format (columns separated by... (8 Replies)
Hi
I have two files
File 1
alias HOME =..
alias DATA = ${DATA}/runtime1/test
alias SQL = ${DATA}/find1dir/test
alias SQL1 = ${HOME}/sql/orcl
alias SQL2 =... (2 Replies)
Hi all,
Need your help here. I have a file with thousand of lines, as shown in example below
KDKJAA 98324
OIDSAJ 324
KJAJAK 100
KJKAJK 89
JOIJOI 21
JDKDJL 12
UOIUOD 10
UDUYDS 8
UIUHKK 6
I would like to grep using... (5 Replies)
I have a script to sort a list of arbitrary hosts and determine if they are supported by grepping them into a master supported list. I cut all the suffixes of the hosts in the arbitrary list, leaving the "short" hostname if you will, then grep -w them into the master list. For example:
... (1 Reply)
Dear Experts,
Need your help.
Typically we use "grep" to search and display a pattern in a txt file.
However, here what we want is, we want to grep a line which contains 4 words any where in a line.
For example.
File has 10,000,000 lines in it out of which there is a particular line which... (1 Reply)
Hey Friends,
Need your help again.
I have input.temp file as follows
$cat input.temp
Lakme|Beauty Products|Lipstick
L'Oreal|Hair Care|Conditioner
Lakme|Beauty Products|Lip gloss
L'Oreal|Hair Care|Mild Shampoo
Gala|Beauty Products|Mehndi Cones
Lakme|Beauty Products|Eye Shadow... (2 Replies)
Discussion started by: anushree.a
2 Replies
LEARN ABOUT DEBIAN
gnome2::config
Gnome2::Config(3pm) User Contributed Perl Documentation Gnome2::Config(3pm)NAME
Gnome2::Config
METHODS
boolean = Gnome2::Config->get_bool ($path)
o $path (string)
boolean = Gnome2::Config::Private->get_bool ($path)
o $path (string)
Gnome2::Config->set_bool ($path, $value)
o $path (string)
o $value (boolean)
Gnome2::Config::Private->set_bool ($path, $value)
o $path (string)
o $value (boolean)
list = Gnome2::Config->get_bool_with_default ($path)
o $path (string)
Returns a boolean indicating whether the default was used and the actual value.
list = Gnome2::Config::Private->get_bool_with_default ($path)
o $path (string)
Gnome2::Config->clean_file ($path)
o $path (string)
Gnome2::Config::Private->clean_file ($path)
o $path (string)
Gnome2::Config->clean_key ($path)
o $path (string)
Gnome2::Config::Private->clean_key ($path)
o $path (string)
Gnome2::Config->clean_section ($path)
o $path (string)
Gnome2::Config::Private->clean_section ($path)
o $path (string)
Gnome2::Config->drop_all
Gnome2::Config->drop_file ($path)
o $path (string)
Gnome2::Config::Private->drop_file ($path)
o $path (string)
double = Gnome2::Config->get_float ($path)
o $path (string)
double = Gnome2::Config::Private->get_float ($path)
o $path (string)
Gnome2::Config->set_float ($path, $value)
o $path (string)
o $value (double)
Gnome2::Config::Private->set_float ($path, $value)
o $path (string)
o $value (double)
list = Gnome2::Config->get_float_with_default ($path)
o $path (string)
Returns a boolean indicating whether the default was used and the actual value.
list = Gnome2::Config::Private->get_float_with_default ($path)
o $path (string)
boolean = Gnome2::Config->has_section ($path)
o $path (string)
boolean = Gnome2::Config::Private->has_section ($path)
o $path (string)
scalar = Gnome2::Config->init_iterator ($path)
o $path (string)
scalar = Gnome2::Config::Private->init_iterator ($path)
o $path (string)
scalar = Gnome2::Config->init_iterator_sections ($path)
o $path (string)
scalar = Gnome2::Config::Private->init_iterator_sections ($path)
o $path (string)
integer = Gnome2::Config->get_int ($path)
o $path (string)
integer = Gnome2::Config::Private->get_int ($path)
o $path (string)
Gnome2::Config->set_int ($path, $value)
o $path (string)
o $value (integer)
Gnome2::Config::Private->set_int ($path, $value)
o $path (string)
o $value (integer)
list = Gnome2::Config->get_int_with_default ($path)
o $path (string)
Returns a boolean indicating whether the default was used and the actual value.
list = Gnome2::Config::Private->get_int_with_default ($path)
o $path (string)
Gnome2::Config->pop_prefix
Gnome2::Config->push_prefix ($path)
o $path (string)
string = Gnome2::Config->get_real_path ($path)
o $path (string)
string = Gnome2::Config::Private->get_real_path ($path)
o $path (string)
string = Gnome2::Config->get_string ($path)
o $path (string)
string = Gnome2::Config::Private->get_string ($path)
o $path (string)
Gnome2::Config->set_string ($path, $value)
o $path (string)
o $value (string)
Gnome2::Config::Private->set_string ($path, $value)
o $path (string)
o $value (string)
list = Gnome2::Config->get_string_with_default ($path)
o $path (string)
Returns a boolean indicating whether the default was used and the actual value.
list = Gnome2::Config::Private->get_string_with_default ($path)
o $path (string)
boolean = Gnome2::Config->sync
boolean = Gnome2::Config->sync_file ($path)
o $path (string)
boolean = Gnome2::Config::Private->sync_file ($path)
o $path (string)
string = Gnome2::Config->get_translated_string ($path)
o $path (string)
string = Gnome2::Config::Private->get_translated_string ($path)
o $path (string)
Gnome2::Config->set_translated_string ($path, $value)
o $path (string)
o $value (string)
Gnome2::Config::Private->set_translated_string ($path, $value)
o $path (string)
o $value (string)
list = Gnome2::Config->get_translated_string_with_default ($path)
o $path (string)
list = Gnome2::Config::Private->get_translated_string_with_default ($path)
o $path (string)
scalar = Gnome2::Config->get_vector ($path)
o $path (string)
scalar = Gnome2::Config::Private->get_vector ($path)
o $path (string)
Gnome2::Config->set_vector ($path, $value)
o $path (string)
o $value (scalar)
Gnome2::Config::Private->set_vector ($path, $value)
o $path (string)
o $value (scalar)
list = Gnome2::Config->get_vector_with_default ($path)
o $path (string)
Returns a boolean indicating whether the default was used and the actual value.
list = Gnome2::Config::Private->get_vector_with_default ($path)
o $path (string)
SEE ALSO
Gnome2
COPYRIGHT
Copyright (C) 2003-2004 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2 for a full notice.
perl v5.14.2 2011-11-16 Gnome2::Config(3pm)