answersLogoWhite

0


Best Answer

With the # symbol.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you indicate a comment line in a shell script?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What line is necessary at the beginning of a script to tell the OS what to use to run the script?

The special line at the beginning of the script is only necessary if you want the script to be run by a certain command interpreter that is different from your logon shell or because you don't know what environment the user of the shell might be running in. It is a special comment line that looks like: #!/command-name such as: #!/usr/bin/ksh which causes the ksh interpreter to be used for the rest of the shell script.


Write a shell script that counts a number of unique word contained in the alphabetical order line by line?

use python, shell is stupid


How do you print a line on screen shell script?

That would depend on what shell you're using. Most seem to have a command similar to "echo x" which will print x to the terminal.


How do you take a single line of input from the user in a shell script?

In "bash" shell it can be achieved with command "read" #!/bin/bash echo "Hi There, what is your name?" read name echo $name


What is the purpose of using echo command?

The echo command echoes out any of the command line arguments given to it. It is commonly used in shell scripts to echo what portions of the shell script are doing.


How do you create a script file in Unix?

A shell script starts with the definition of the interpreter to use. Usually when one says ``shell script'', one means bash script. So a good first line would be #!/bin/bash This says that the program located in the filesystem at /bin/bash should be executed with this script as its input. With a bash script, you can simply start typing a list of commands. Furthermore it is possible to use logic and control structures like if, else, for, while, etc etc. See http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html for a good starting guide.


What is single line comment?

single line comment are comment written in single line.in c there are two types of comment single line and multiple line.single line comment is written using // and multiple line comment is written between /*comment*/.compiler does not compile comments.it is used for better understanding of program.


11 What is a comment line How is a comment line noted within a file?

A comment line is a line or part of a line in a program that is intended as a remark or comment and is ignored when the program runs. It is noted within the file by using a semi-colon or an REM to mark a line as a comment.


How can you create a comment in a C plus plus program?

There are two ways:The single line comment with a double slash //. Everything after the double slash on a single line is commented out.The multi-line comment using a /* to open, and a */ to close.A good IDE will color code the comments instantly.


What is single line comments as used in C programming?

single line comment are comment written in single line.in c there are two types of comment single line and multiple line.single line comment is written using // and multiple line comment is written between /*comment*/.compiler does not compile comments.it is used for better understanding of program.


What do the three dots in a play script mean?

The three dots (...) in a play script indicate a pause in dialogue, often to convey a hesitation or unfinished thought by a character. It suggests a moment of silence or contemplation before continuing the conversation.


Where can someone go to learn more about shell script?

Linux shell scripting tutorials are available as pdf files or videos where a lecturer speaks over a video of a computer console. This is where you can watch someone code in the bash environment and follow along.