Socat command syntax

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Here is some socat command example I find:



$ printf "md.b 0x0800000 0x100000rr" | 
socat - /dev/ttyUSB0,raw,echo=0,crnl >u-boot.ascii 2>&1


It's not clear what is purpose of backslash "" after vertical bar: does it just artifact (separator) applied by mail client or it has some meaning? The command need be in one line probably?







share|improve this question
























    up vote
    0
    down vote

    favorite












    Here is some socat command example I find:



    $ printf "md.b 0x0800000 0x100000rr" | 
    socat - /dev/ttyUSB0,raw,echo=0,crnl >u-boot.ascii 2>&1


    It's not clear what is purpose of backslash "" after vertical bar: does it just artifact (separator) applied by mail client or it has some meaning? The command need be in one line probably?







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Here is some socat command example I find:



      $ printf "md.b 0x0800000 0x100000rr" | 
      socat - /dev/ttyUSB0,raw,echo=0,crnl >u-boot.ascii 2>&1


      It's not clear what is purpose of backslash "" after vertical bar: does it just artifact (separator) applied by mail client or it has some meaning? The command need be in one line probably?







      share|improve this question












      Here is some socat command example I find:



      $ printf "md.b 0x0800000 0x100000rr" | 
      socat - /dev/ttyUSB0,raw,echo=0,crnl >u-boot.ascii 2>&1


      It's not clear what is purpose of backslash "" after vertical bar: does it just artifact (separator) applied by mail client or it has some meaning? The command need be in one line probably?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 4 at 13:18









      minto

      16611




      16611




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          That's a way to split a line into more lines. The literal meaning of the backslash is escaping the end of line symbol. The effect is that the line is not ending where it does, but it continues on the next line. As can be guessed, the end of line symbol has to follow the immediately. If there's a space after the backslash, it won't work.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414766%2fsocat-command-syntax%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            That's a way to split a line into more lines. The literal meaning of the backslash is escaping the end of line symbol. The effect is that the line is not ending where it does, but it continues on the next line. As can be guessed, the end of line symbol has to follow the immediately. If there's a space after the backslash, it won't work.






            share|improve this answer
























              up vote
              2
              down vote













              That's a way to split a line into more lines. The literal meaning of the backslash is escaping the end of line symbol. The effect is that the line is not ending where it does, but it continues on the next line. As can be guessed, the end of line symbol has to follow the immediately. If there's a space after the backslash, it won't work.






              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                That's a way to split a line into more lines. The literal meaning of the backslash is escaping the end of line symbol. The effect is that the line is not ending where it does, but it continues on the next line. As can be guessed, the end of line symbol has to follow the immediately. If there's a space after the backslash, it won't work.






                share|improve this answer












                That's a way to split a line into more lines. The literal meaning of the backslash is escaping the end of line symbol. The effect is that the line is not ending where it does, but it continues on the next line. As can be guessed, the end of line symbol has to follow the immediately. If there's a space after the backslash, it won't work.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 4 at 13:46









                Tomasz

                8,03552560




                8,03552560






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414766%2fsocat-command-syntax%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay