Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Using VI editor this can be done like this.

type this command.

:1,7w <newfilename>

All Good
Mo

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1235


What do know about tee command?

1170


Explain command to display different lines that are found when compare two files?

1185


What happens when we execute a unix command?

1150


What is the significance of the 'tee' command?

1203


What is the difference between grep and grep?

1138


Name the general commands in using unix os for a beginner?

1171


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

1790


How do I use grep to find a file?

1119


What does the metacharacter mean?

1141


Can you enlist some commonly used network commands?

1121


What command is used to check the current users?

1137


How do I search for text in vi?

1051


What are grep patterns?

1094


What is awk command used for?

1250