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 |
Write a shell script in Linux to shift all characters in a file forward by five characters. (Thus “a” becomes “f’”).
2 Answers Ignou, Tripura Info,
Why do we use shell scripting?
Create a bash shell script that reads in a number from the user. If the number is 1, print out the date. If the number is 2, list the files in the current directory. If the number is 3, print out who is currently logged onto the system. If the number is anything else, print out an error message and exit. Name this script "various.sh"
What are the Different types of shells?
What does sh mean?
What is a shell script in windows?
How will you copy a file from one machine to other?
Why are there shells on the beach?
What is bash eval?
When we login into our account which files are executed?
Write a shell script to looking at the log file to see if the test has passed or not
What is a file basename?