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 wc in shell script?
What is computer cli?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
write a shell script to check the failed jobs?
What is bourne shell scripting?
madhar chod unix ke 10 commands dhang se likh nahi sakta hai
How does ls command work?
What is the significance of $#?
What language is bash written in?
Is shell scripting difficult?
What is shift command in shell script?
What is path variable bash?
Why do we write bin bash in shell scripts?
What is the meaning of $1 in shell script?