How would you print just the 25th line in a file using
smallest shell script?
Answers were Sorted based on User's Feedback
Answer / alok
awk -F"|" ' NR == 25 {print} ' emp.lst
in this file | is a field seprator
Is This Answer Correct ? | 0 Yes | 4 No |
What are the types of script?
How will you connect to a database server from linux?
When we login into our account which files are executed?
Is scripting and coding the same thing?
write a shell script to identify the given string is palindrome or not?
17 Answers CTS, HP, IBM, InfoEst, Wipro,
Write a shell script to get current date, time, user name and current working directory.
How do I read a .sh file?
Hi, all Scripting professional. Q. I have written script1.sh and calling script2.sh in script1.sh file using bash shell as interpreter and my log in shell also bash shell.My code like Script1 #!/bin/bash echo "My script2 call" . script2.sh Here script2.sh file run successfully but when I have changed my interpreter bash to ksh like #!/bin/ksh Error are comming script2.sh command not found. Guid me how to call other script in our main script.
Write a shell program to test whether a given number is even or odd?
Is shell scripting difficult?
What is the difference between bash and shell?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.