What are the additional egrep symbols?
Answers were Sorted based on User's Feedback
Answer / vijesh
-b Precede each line by the block number on which
it was
found. This can be useful in locating block
numbers by
context (first block is 0).
-c Print only a count of the lines that contain
the pat-
tern.
-e pattern_list
Search for a pattern_list (full regular
expression
that begins with a -).
-f file
Take the list of full regular expressions from
file.
-h Suppress printing of filenames when searching
multiple
files.
-i Ignore upper/lower case distinction during
comparis-
ons.
-l Print the names of files with matching lines
once,
separated by NEWLINEs. Does not repeat the
names of
files when the pattern is found more than once.
-n Precede each line by its line number in
the file
(first line is 1).
-s Work silently, that is, display nothing except
error
messages. This is useful for checking the
error
status.
-v Print all lines except those that contain the
pattern.
-x Consider only input lines that use all
characters in
the line to match an entire fixed string or
regular
expression to be matching lines.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is egrep?
How can we find the process name from its process id?
What are the default permissions of a file when it is created?
What is console line?
A file has multiple records each having three 30-bit long fields(field1,field2,field3).There is also a lookup file,LOOK_UP.dat.Now, we need to consider only the last ten digits of field1 and lookup the file LOOK_UP.dat. If there a match then field2 and field3 should replaced with corresponding data from the lookup file. otherwise that particular record,for which there is no match, should be stored in a seperate file.
How do you rename the files(*.sh) with file names containing space in it?for example "interview question.sh" needs to rename to "interview-question.sh". Appreciate your inputs.Thanks.
How to modify the PATH variable and make it executable?
madhar chod unix ke 10 commands dhang se likh nahi sakta hai
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
How do you schedule a command to run at 4:00 every morning?
How to include comments in your shell scripts?
Is shell scripting easy to learn?