In a file , how to retrieve the lines which are the
multiples of 50 ? like 50,100,150th lines etc.
Answer Posted / abhishek
awk 'NR % 2 == 0 {print}' abc.txt
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
What is a scripting language simple definition?
What is sh in shell script?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
How are shells born?
What are zombie processes?
What is shell chemistry?
What are the advantages of shell script?
Explore about environment variables?
What is a shell in operating system?
How can I set the default rwx permission to all users on every file which is created in the current shell?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.