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
Print the 10th line without using tail and head command.
What are the different commands available to check the disk usage?
What is shell geeksforgeeks?
What is a shell environment?
shell script for reverse the string
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
What are the different communication commands available in the shell?
Explain about echo command?
Write a shell script to get current date, time, user name and current working directory.
What is a shell? · Types of shell · what is shell scripting?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
What does $0 mean in shell script?
Is shell scripting a language?
What is meant by $1 in shell script?
What is the use of echo in shell script?