H I O X INDIA
LINUX Commands
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Templates 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)
Español Français 中文 Deutsch
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

LINUX / UNIX cmd
Introduction
Commands in A
Commands in B
Commands in C
Commands in D
Commands in E
Commands in F
Commands in G
Commands in H
Commands in I
Commands in J
Commands in K
Commands in L
Commands in M
Commands in N
Commands in P
Commands in R
Commands in S
Commands in T
Commands in U
Commands in W
Commands in Y
More about Linux
Feedback




echo Linux Commands


Topic

What is Linux echo Command?




Explanation

echo COMMAND:
     echo command prints the given input string to standard output.

SYNTAX:
  The Syntax is
     echo [options..] [string]

OPTIONS:
     
-n do not output the trailing newline
-e enable interpretation of the backslash-escaped characters listed below
-E disable interpretation of those sequences in STRINGs

    Without -E, the following sequences are recognized and interpolated:

\NNN the character whose ASCII code is NNN (octal)
\a alert (BEL)
\\ backslash
\b backspace
\c suppress trailing newline
\f form feed
\n new line
\r carriage return
\t horizontal tab
\v vertical tab



EXAMPLE:
     
  1. echo command
    echo "hscripts Hiox India"

    The above command will print as hscripts Hiox India

  2. To use backspace:
    echo -e "hscripts \bHiox \bIndia"

    The above command will remove space and print as hscriptsHioxIndia

  3. To use tab space in echo command
     echo -e "hscripts\tHiox\tIndia"
    The above command will print as hscripts          Hiox          India





        Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


privacy policy     license     sitemap
© 2004-2009 HIOX INDIA - hioxindia.com

Other Links