if we create a file, in that 10 rows(means 1,2,....9,10
like). i want 7 row exactly, which command use in unix?
plz send this question.

Answer Posted / anandthks

head -7 <filename>| tail -1

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who wrote grep?

591


How do I search a whole word in vim?

704


What is the pipe command?

590


What do know about tee command and its usage?

601


How do I delete files from command prompt?

555






What is a bash command?

633


What is the use of sed command in unix?

608


What does grep v grep do?

558


What is the nmap command?

595


What is the difference between awk and grep?

565


Which unix command to make a new directory?

596


Why is awk called awk?

583


Write a command to display a file’s contents in various formats?

633


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

603


Enumerate some of the most commonly used network commands in unix?

626