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 / sivaprasad

hi, this is sivaprasad from school of IT.

If you want exactly 7 line u can use sed command as follows

$sed -n '7,7p' filename

ok.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ‘ps’ command for?

620


Using unix command how to display no of records in oracle?

615


What is the command to find hidden files in the current directory?

589


What are the unix commands?

560


How do I find previous commands in unix?

599






What's a command word?

591


How do I use grep to search for a file?

584


What command is used to switching between users in unix?

566


how to sort the content of the file based on numeric values

1256


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

637


What is the use of cut command in unix?

696


Why is shebang used?

600


What is the use of egrep command in unix?

630


What is grep short for?

558


What is sed awk grep?

609