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...

How would you print just the 25th line in a file using
smallest shell script?

Answer Posted / swaroopa

sed -n 25p <filename>

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.

2254


What are the advantages of shell script?

1032


How to write a function?

1043


How to get the 3rd element/column from each line from a file?

1197


How many fields are present in a crontab file and what does each field specify?

1136


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

1073


What is computer cli?

915


What are the types of script?

1184


What is batch file programming?

1167


How do I set bash as default shell mac?

1017


determine the output of the following command: echo ${new:-variable}

991


What are scripts in psychology?

1077


Explain about shebang?

1044


How to pass an argument to a script?

1217


Print the 10th line without using tail and head command.

2182