Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Thanks so much, Working! when i tested this command in other system unix, it works correctly, what wrong with the shell! Commented Apr 19, 2012 at 5:10
  • one more thing when i tried to print "Hello" with echo "\"Hello\"" in tcsh shellit saying Unmatched ". can you please fix this Commented Apr 19, 2012 at 5:21
  • 1
    Nope. Dunno tcsh, and I don't care to. Commented Apr 19, 2012 at 5:35
  • 3
    @user1228191: Once again, use single quotes: echo '"Hello"' Commented Apr 19, 2012 at 7:25
  • I'm surprised that worked. In tcsh, echo "'!'hello" prints '!'hello, and echo '!hello' prints hello: Event not found.. It's generally more reliable to escape ! characters with backslashes. (csh/tcsh syntax is not consistent and typically requires either trial and error or a different shell.) Commented Dec 12, 2017 at 0:53