In a file , how to retrieve the lines which are the
multiples of 50 ? like 50,100,150th lines etc.
Answer Posted / mohsin
egrep "^[0-9]*[0|5]0" filename
Is This Answer Correct ? | 5 Yes | 13 No |
Post New Answer View All Answers
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?
How do I run a .sh file on mac?
How many fields are present in a crontab file and what does each field specify?
What is the best scripting language?
What does $0 mean in shell script?
Can shell script run on windows?
How will you print the login names of all users on a system?
Write down the syntax for all the loops in shell scripting.
Why is a script important?
What is wc in shell script?
How will you find the 99th line of a file using only tail and head command?
What is the fastest scripting language?
What is a beat in a script?
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.
How do we delete all blank lines in a file?