to list a particular line in the file

Answer Posted / jam

To print a specific line without using a string.

sed -n '1p' <filename>

Where 1 is teh line number

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the comma to show the space allocation of files?

640


What does this command do? Cat food 1 > kitty

1069


What does the metacharacter mean?

691


Name the various commands that are used for the user information in unix.

638


What is the use of egrep command in unix?

704






How to use grep command to list find the records of a file containing 10 different strings?

729


What is the difference between cat command and more command?

677


What is the first character of the output in ls l command?

729


What does #!/ Bin sh do?

670


Is ‘du’ a command? If so, what is its use?

717


What is difference between grep and find command in unix?

669


What is awk command used for?

694


Differentiate cmp command from diff command.

677


How do you grep recursively?

656


What are the differences among a system call, a library function, and a unix command?

669