answersLogoWhite

0

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.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How do you indicate a comment line in a shell script?

With the # symbol.


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


What does sys.argv do on python?

sys.argv is a way to access command line arguments in Python. sys.argv is an array of all the command line parameters, where the first value is the name of the file being run. For example, let's say you have a python script named example.py that looks like this: import sys print(sys.argv) This script will simply print the command line parameters in an array. If, for example, you run the script from a command line as python example.py param1 param2 the output will be ['example.py', 'param1', 'param2']


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 are special characters that appear on a screen but do not print?

They are unprintable formatting characters. They indicate line and paragraph breaks for instance.


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.


Write a shell script that prints a list of every unique word in a file in alphabetical order line by line?

#!/bin/sh sed -e 's/\W\+/\n/g' | sort -u


Shell script that accepts a file name starting and ending line numbers as arguments and display all the lines between the given line numbers?

i=1 while [ $i -le $# ] do grep -v Unix $i > $i done


What character is used to delimit most configuration files in Linux?

According to the Linux+ Guide to Linux Certification 2nd ed., most configuration files on Linux systems are delimited using the colon symbol (:) while the awk command uses spaces or tabs as delimiters for each field in a line. SudoKing, please note that the hash symbol (#) allows the commenting of lines, not the delimiting of lines. This is not to be confused with a hashpling (such as #!/bin/bash) which is located on the first line in a shell script, and specifies the pathname to the shell that interprets the contents of the shell script.