Find the answer to your Linux question:
Results 1 to 6 of 6
what r the drawbacks of echo command? can u plz suggest some enhancements in echo command....
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    18

    Post enhancements of echo

    what r the drawbacks of echo command?
    can u plz suggest some enhancements in echo command.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    Really I can't think of any drawbacks.

    Just in case ,check this :

    # echo `ls -l `
    Displayed Output is diffenent from normal
    ls -l
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  3. #3
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    happy, what exactly are you looking for?

    In Linux, one prevailing philosophy of software design is KISS: "Keep It Simple, Stupid!". For this reason, "echo" simply prints out text that it is given: nothing more. Because of our ability to pipe output from one command into another command, you can build up very powerful commandlines by using very simple building blocks. This helps to keep these commands straightforward and bug-free.

    Do you see any problems with the echo command? What do you wish that it would do instead? There might be another utility to do that already.
    DISTRO=Arch
    Registered Linux User #388732

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    Hi Cabhan !!!
    Long time no see
    Glad to see you back Hope you are doing well
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  5. #5
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    i dont see any drawback in echo command in this context. For enchancement purpost you can see the man page of echo , you can add effect using the -e opption.
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  6. #6
    Banned
    Join Date
    Jun 2009
    Posts
    68
    Going by the man/info pages for echo, there's nothing else to do with it but -e for escaping \t tab \n newline, etc. It would have to be another program for any other "enhancements".

Posting Permissions

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