answersLogoWhite

0

Use the builtin 'echo' or 'print' command followed by the shell variable name, which will substitute the value when printed/displayed.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you write a statement in DOS using shell script to display a word?

We can not perform Shell Scripting in DOS, we can do Batch programing in DOS..


Write a program in shell script to display odd number from 0 to 100?

seq 1 2 99


Write a shell program called whos to display a sorted list of the logged in usersJust display the user names and no other information?

The 'users' command should do that; you don't need to write a shell script to get that information in that format.


What is the command to execute a shell script?

If the shell script is readable and executable then to execute it just type the name of the shell script file. Otherwise, you can explicity call a shell interpreter to run the file as a shell script, i.e., ksh myfile


Can you execute a shell script if you do not have read permission for the file containing the script?

No, the shell needs both execute and read permissions to run the script.


Write a shell script to show that user is logged in or not?

You don't need a shell script for that; use either 'whoami' or 'id'


Parse log files-shell script?

There are following shell scripts available at the below mentioned url -1. Shell Script for Log4j Log Analysis and exception reporting2. Log Monitoring Shell Script - email upon errorsHope that's what you are looking for.


Write a shell script to display the smallest file name in respect of the string length among the list of files available in the current directory?

ls-lS | tail-1


What is the Purpose of exit command in Shell of Unix?

The 'exit' command allows you to stop a running shell script at any point and to return a "status" value back to whomever called the shell script. This is a very common practice with shell scripts; sometimes you want to stop the script before it gets to the end of the shell script (for various logic reasons). The 'exit' command also allows you to give a status that any other calling process can use to determine if the shell script ended successfully or not.


How do you change permissions on a shell script?

To change permissions on a shell script, you can use the chmod command in the terminal. For example, to make a script executable, you would run chmod +x script.sh. You can also set specific permissions by using numeric values, such as chmod 755 script.sh, which grants read, write, and execute permissions to the owner and read and execute permissions to the group and others.


How do you compile and run shell script of factorial?

Shell scripts are not compiled; they are interpreted (and therefore do not need to be compiled). Just type in the name of the shell script and any parameters it needs to execute.


In Shell script. How do I ask for and accept two numbers and then calculate the sum of the supplied numbers and display the sum.?

It depends on the script language you are using. In the Korn shell, you can say: echo -n "Enter the first number: " read first echo -n "Enter the second number: " read second let third=$first+$second echo The answer is $third

Trending Questions
You have ubuntu installed on your old Sony Vaio Desktop 1 ghz 256 mb ram and it worked fine for a couple weeks then the computer started shutting down due to CPU overheating please tell you what to do? What is the little box called that pops up in the lower right corner of the computer? How do you export music from iTunes to musicmatch jukebox? What services does Preemptive Solutions provide? What is a long vertical strip on the right edge of the desktop that holds mini-programs called gadgets? What will happen of you use all your ports in a network switch? How many centiliters are in 1.5 liters? You seem to be asking your question wrong you can not get your printer to print anything but you have ink? What type of processor does the hp dv6000 laptop have? The definition of commadites? You want to change the appearance of a table you've used in a PowerPoint slide to make the table more interesting and colorful how do you do this in PowerPoint? Is motherboard is a input or output device? 14.2 mL to kL? Ads technologies inc USB Ultra Hub 4 What is the power supply for this I need how many volt mA etc I dont want to hook up the wrong cord PN USBH 604 FCC LL5 USBH 604 SN 01 7030847? What is Wireless mesh? What the advantages and disadvantages of using variable length instructions? What is a clustering in mnemonic devices? How do you remove freckles? What kind of data is remained in memory when power is switch off? In Ubuntu when you install software using 'apt-get' where are the source code files on your hard drive?