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
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.
What are the advantages of shell script?
How to write a function?
How to get the 3rd element/column from each line from a file?
How many fields are present in a crontab file and what does each field specify?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What is computer cli?
What are the types of script?
What is batch file programming?
How do I set bash as default shell mac?
determine the output of the following command: echo ${new:-variable}
What are scripts in psychology?
Explain about shebang?
How to pass an argument to a script?
Print the 10th line without using tail and head command.