It is showing like that output because you are giving an OR condition which means any of these words if they are coming into a line then print it(so that is why other than 1st lines are getting printed too because any of the words are coming there), if words sequence will be same as per shown sample Input_file then following may help you in same.
Thanks,
R. Singh
These 2 Users Gave Thanks to RavinderSingh13 For This Post:
:cool: fedora core 2 version 2.6.8-1.521 gnu/linux
the last version of redhat that I was working with linux 8.0 a special version that came with a book.. on this version and on spider tools linux 0.9 the second version I worked with.. when i envoked egrep -e from file1 to file2 I would get the... (4 Replies)
I'd like to grep a pattern of a version number as
*_number.number.number
number should be digit
my grep is
|egrep '^*++\.+'
It works for V_3.2.1 or V _5.3.2 but not with V_43.6.543 !!!!!
How can I specify any repetition of digit in the ?
thanks, (4 Replies)
Hi All,
I am using egrep command to search one pattern. Following is the command i am using
egrep -i "ACL*" filename
but its also giving me the records which do not contain ACL.
any help would be appreciated.
Regards,
Sam (3 Replies)
Hi All,
I am having a query regarding the usage of egrep command.
i am having two unix environmanets in environment when i am using
"egrep -f" it is working fine and other unix environment i am getting a syntax error.
Please let me know if i need to set any environmane variables.
... (12 Replies)
Hi All,
Here is my question.
I have two files, file1.txt and file2.txt. I need the line number (index number) of file2.txt where the words in file1.txt appear. But they have to be in the same order as file1.txt. In example,
file1.txt
Z
K
A
...
T
file2.txt
W
A
Q
R (6 Replies)
Hi,
I'm trying to validate if a string matches a regular expression, but it is not working. Am I missing something? Do I need to scape any of the characters?
if echo 'en-GB' | egrep '({1,8})(-{1,8})*' >/dev/null; then
echo Valid value
fi
Thanks in advance (6 Replies)
cat /tmp/inventory.csv|grep AARP|egrep -v "T11|12.4\(7\)"
how do i exclude in addition to above 12.4\(3\)
I have tried adding this in i.e
-v "T11|12.4\(7\)|12.4\(3\)"
but it did not work (3 Replies)
Hello folks,
Here's how my current egrep command works:
egrep "NY|DC|LA|VA|MD" state_data.txt
I am planning to use a file to enter all allowable state values like say a new state_names.lookup with the following data:
NY
DC
LA
VA
MD
egrep "`cat state_names.lookup`"... (6 Replies)
Hi Guys,
I need hepl on egrep commnad
I have one file and i need grep only specific lines..
EX:
2012-04-01 02:15:14 w
2012-04-01 02:15:14 w
2012-04-01 02:15:14 w
2012-10-26 02:15:14 w
2012-04-01 02:15:14 w
2012-10-26 02:15:14 w
2012-10-26 02:15:14 w
2012-10-26 03:18:56 M... (1 Reply)
Hi,
I am trying to find out patterns in file 1 using patterns stored in file 2. Following is the code
FILE1=inputfilename
FILE2=blacklist
blacklist
1203
97715555
20afEOF
egrep -f $FILE2 $FILE1
but the above code is not working either using egrep or grep. Just for your... (10 Replies)
Discussion started by: siramitsharma
10 Replies
LEARN ABOUT SUSE
pk-debuginfo-install
PK-DEBUGINFO-INSTA(1) [FIXME: manual] PK-DEBUGINFO-INSTA(1)NAME
pk-debuginfo-install - Debugging Packages Installer
SYNOPSIS
pk-debuginfo-install [--help] [--verbose] [--simulate] [--no-depends]
DESCRIPTION
This manual page documents briefly the pk-debuginfo-install command.
pk-debuginfo-install is the command line client for installing debuginfo packages.
WHY DO I NEED DEBUGINFO PACKAGES ?
When a program crashes, it's often useful to send the developer a backtrace which contains symbol names and variable contents, rather than
memory addresses. To make this possible, extra packages called debug packages can be installed.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
--help
Show summary of options.
--noninteractive
Do not be interactive and skip the confirmation before the packages are installed.
--verbose
Show extra debugging information.
--simulate
Don't actually install any packages, only simulate what would be installed.
--no-depends
Do not scan for, or install dependencies of the core packages.
--quiet
Do not display information or progress to the terminal.
RETURN VALUES
0
Success, at least one package was installed
1
Failed with miscellaneous internal error.
3
Failed to get software sources list.
4
Failed to enable software sources.
5
Failed as nothing to do.
6
Failed to find dependant packages.
7
Failed to install.
8
Failed to disable software sources.
SEE ALSO
pkmon (1). pkcon(1).
AUTHOR
This manual page was written by Richard Hughes richard@hughsie.com.
COPYRIGHT
Copyright (C) 2009 Richard Hughes
[FIXME: source] 29 July,2009 PK-DEBUGINFO-INSTA(1)