In a file , how to retrieve the lines which are the
multiples of 50 ? like 50,100,150th lines etc.
Answer Posted / kavita
awk 'NR % 50 ==0 {print}' filename
Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How do I read a .sh file?
What is web script?
How to get script name inside a script?
How do we delete all blank lines in a file?
What is k shell?
What is gui scripting?
What are the advantages of shell scripting?
what is info area how many types?
How to pass an argument to a script?
What is a shell made of?
What is the way to do multilevel if-else's in shell scripting?
What are the types of script?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
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.
Which scripting language is best for automation?