In a file , how to retrieve the lines which are the
multiples of 50 ? like 50,100,150th lines etc.
Answer Posted / ramesh jp
awk 'NR % 50 == 0' print
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
How do I run a script on mac?
How to calculate the number of passed arguments?
What are the 3 standard streams in linux?
What is $1 in shell scripting?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What are the advantages of using shell scripts?
Can shell script run on windows?
What is a batch file used for?
Given a file find the count of lines containing the word "abc".
Why is shell scripting important?
What is eval in shell script?
What are the different commands available to check the disk usage?
How will you connect to a database server from linux?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command