Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007
    Posts
    11

    Unanswered: help with a command outcome????

    im trying to find the outcome of the following command:

    $ echo line one> line 2 (where $ is the prompt and the > is printed by the shell)

    i have no clue what this means???

  2. #2
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    248
    Hi,

    To limit the number of arguments of the echo command you have to quote them otherwise all words/symbols of the line following echo will be regarded as arguments for it. So to get what you want you need to write:
    Code:
    $ echo "line one" > "line 2"
    In this case the filename "line 2" is also quoted because with '> line 2' the shell will put echo's output in 'line' and has no clue to what '2' is.

    Regards

Posting Permissions

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