In a file , how to retrieve the lines which are the
multiples of 50 ? like 50,100,150th lines etc.
Answer Posted / vivek
egrep "^[0-9]*[05]0$" filename
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is bash shell command?
Differentiate between ‘ and ” quotes.
How do I save a powershell script?
Give some situations where typing error can destroy a program?
What is awk script?
What is a command line shell?
What are the disadvantages of shell scripting?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
State the advantages of shell scripting?
What are the types of script?
Calculate a real number calculation directly from the terminal and not any shell script.
How do we delete all blank lines in a file?
What is shell company all about?
What is bash coding?
What does path stand for?