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
What is gui scripting?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What can scripts do?
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
Is shell script a programming language?
Why should we use shell scripts?
I have 2 files and I want to print the records which are common to both.
How does shell scripting work?
How to get the 3rd element/column from each line from a file?
What is the fastest scripting language?
How do I run a shell script in powershell?
how to get part of string variable with echo command only?
How do I run a bin bash script?
How to use arguments in a script?
how will you find the total disk space used by a specific user?