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

Shell Script Interview Questions
Questions Answers Views Company eMail

How to sort a result of Ls -l command based on columns. Ex. i want to sort 5th column from output of ls -l command.

TCS,

6 12567

madhar chod unix ke 10 commands dhang se likh nahi sakta hai

Cap Gemini,

3477

1.Write a script, which converts a number from binary to hexadecimal format or vice versa.

ADP,

1 5691

Shifting positional parameter in Linux fedora core ? Hi I have written following shell script for display value of positional. But in 11th and 12 field will display without shifting command. May I know is it advance of Linux of programming code error? #!/usr/bin/bash echo "Bellow is the out of ps command" echo "`ps`" echo "The passing Parameter i.e output of \$1,2... value is:==> $11 " echo "Total number of passed argument \$# is:==> $#" echo "Passed argument names (\$*) are:==>$*" echo "This script PID(\$$) is :=>$$" echo "The name of executing script(\$0) is :==>$0" echo "The Parent ID of this script(\$PPID) is:==>$PPID" And my input to this script is ./scriptname arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10 arg11 arg12 Output Is Bellow is the out of ps command PID TTY TIME CMD 2892 pts/0 00:00:00 bash 3172 pts/0 00:00:00 positional_para 3173 pts/0 00:00:00 ps The passing Parameter i.e output of $1,2... value is:==> arg11 Total number of passed argument $# is:==> 13 Passed argument names ($*) are:==>arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10 arg11 arg12 arg13 This script PID($$) is :=>3172 The name of executing script($0) is :==>./positional_parameter The Parent ID of this script($PPID) is:==>2892 After the ps output please see the next line I.e $11 value comes out without shifting the parameter. How is it give me my friends

2203

What are the 4 basics of OOP?

Amazon, Infosys,

1 8488

Create a bash shell script that reads a line from the user consisting of 5 words and then prints them out in reverse order. Name this script "reverse.sh"

1 5071

Create a bash shell script that reads in a number from the user. If the number is 1, print out the date. If the number is 2, list the files in the current directory. If the number is 3, print out who is currently logged onto the system. If the number is anything else, print out an error message and exit. Name this script "various.sh"

4 6790

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.

2 4276

In a file , how to retrieve the lines which are the multiples of 50 ? like 50,100,150th lines etc.

Amazon,

9 15058

if i have 2 files file1 and file2.... file1 contains 2 columns like b a 11 aa 12 as 13 ad 15 ag 11 ar 13 ah 15 ak file2 contains b c 10 ds 11 at 15 gh 15 jk 13 iu 11 fg 13 yy can any 1 give me the program to display in this way? a b c aa 11 at ar 11 fg ad 13 iu ah 13 yy ag 15 gh ak 15 jk

3 4902

Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

TCS,

2161

what is tickets $ what low,medium,high priorite pls define time also

2166

Hi All, Is it possible to create one file name only space or space in file name in UNIX and we can able to run that on Unix?

Cap Gemini,

2 6887

how to search for vowels a,e,i,o,u appearing in the same sequence in a file

Amazon,

4 10688

What is the difference between running a script as ./scriptname.sh and sh scriptname.sh

1 7298


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

What is shell terminal?

958


What is option in shell script?

1018


What does .sh file contain?

959


What is echo in shell?

1107


Calculate a real number calculation directly from the terminal and not any shell script.

1223


What is shell company all about?

982


c program to display the information of given file similar to givan by the unix or linux command ls -l

2220


What are the four fundamental components of every file system on linux?

1683


How can we find the process name from its process id?

1174


What is the command to find out today's date?

1141


What are the different variables present in linux shell?

1106


Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.

1286


how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com

2568


How do you create a shortcut in linux?

1202


What is the default ubuntu terminal?

1128