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

ans- cut -d " " -f 1-7 <file name>

by this u can get all the 7 rows of ur file.
here i give 'space" as the delimeter.
u give the delimeter as u give in the file.

by -f option u can exactly get the 1 to 7 field/rows

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which unix command lists files/folders in alphabetical order?

622


What is awk good for?

590


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

650


What do know about tee command?

607


What are awk commands?

586






What does this command do? Cat food 1 > kitty

984


What is the use of find command in unix?

588


What is the comma to display different lines that are found when compare two files?

595


How to find $ai_serual resolved path by using unix

1031


What is unix command?

586


Are you in or at the office?

615


what is the advaantage of each user having its own copy of the shell?

2040


Enlist some filename manipulation commands in unix.

556


Explain command to view process running?

619


Which command is used to create a directory?

577