Linux: Linux Command Line, Cover all essential Linux commands. A complete introduction to Linux Operating System, Linux Kernel, For Beginners, Learn Linux in easy steps, Fast!: A Beginner's Guide by Ray Yao

Linux: Linux Command Line, Cover all essential Linux commands. A complete introduction to Linux Operating System, Linux Kernel, For Beginners, Learn Linux in easy steps, Fast!: A Beginner's Guide by Ray Yao

Author:Ray Yao [Yao, Ray]
Language: eng
Format: epub, pdf
Published: 2015-06-30T07:00:00+00:00


Chapter 19

Scripting Commands

echo: display text.

expr: perform math calculation

#!/bin/bash: put in the first line of a bash shell scripts file.

echo: display text.

Example:

root> STR=”Hello World!”

root> echo $STR

(echo: display text.

The output is “Hello World!”)

echo -e: display text using escape sequences.

Example:

root> STR=”Hello World!”

root> echo –e “\n$STR\n”

(echo -e: display text using \n. \n means add a new line.)

The output is

Hello World!



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.