Closed Thread
Results 1 to 3 of 3

Thread: Use of the echo command in shell scripting

  1. #1
    DarkLordoftheMonkeys's Avatar
    DarkLordoftheMonkeys is offline Programming Professional
    Join Date
    Oct 2009
    Location
    Massachussets
    Posts
    255
    Blog Entries
    56
    Rep Power
    11

    Use of the echo command in shell scripting

    Does the echo command send its input to the standard output of the script it's used in?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2009
    Location
    Santa Clarita, CA
    Posts
    2,111
    Blog Entries
    47
    Rep Power
    31

    Re: Use of the echo command in shell scripting

    Echo sends its input to standard output, wherever that happens to point. If you don't direct it anywhere, it'll appear on the terminal screen that runs the script. If you direct it using a redirect it'll be used as standard input for whatever program it's redirected into.
    Wow I changed my sig!

  4. #3
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,725
    Blog Entries
    2
    Rep Power
    90

    Re: Use of the echo command in shell scripting

    Yes, if you're using bash:

    echo MAN Page

    EDIT: You beat me zeke
    Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. C-Shell Scripting
    By Dreamcatcher in forum Linux Programming and Scripting
    Replies: 2
    Last Post: 09-06-2011, 05:44 AM
  2. Tutorial: Shell Scripting - Username/Password
    By veda87 in forum Linux Tutorials, Guides and Tips
    Replies: 4
    Last Post: 06-25-2011, 11:08 PM
  3. Replies: 9
    Last Post: 07-09-2010, 11:03 PM
  4. Shell Scripting
    By NeedHelp in forum General Programming
    Replies: 9
    Last Post: 04-16-2007, 09:04 AM
  5. Shell Scripting Problem
    By Chan in forum General Programming
    Replies: 3
    Last Post: 03-22-2007, 09:59 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts