.sh line endingsShell script with select command to show a list of filesHow to copy clone folder to remote...

How to kill a localhost:8080

Can throughput exceed the bandwidth of a network

Is there a frame of reference in which I was born before I was conceived?

Did Amazon pay $0 in taxes last year?

How do I deal with being jealous of my own players?

I can't die. Who am I?

Real life puzzle: Unknown alphabet or shorthand

What is this waxed root vegetable?

Reason why dimensional travelling would be restricted

Don't know what I’m looking for regarding removable HDDs?

Where is the line between being obedient and getting bullied by a boss?

lead or lag function to get several values, not just the nth

Sometimes a banana is just a banana

Is it possible to make a clamp function shorter than a ternary in JS?

Starting index at zero

How do you say “my friend is throwing a party, do you wanna come?” in german

How do you say "powers of ten"?

Six real numbers so that product of any five is the sixth one

Why I cant see italic font at the header?

School performs periodic password audits. Is my password compromised?

When to use mean vs median

In Adventurer's League, is it possible to keep the Ring of Winter if you manage to acquire it in the Tomb of Annihilation adventure?

How to evaluate the limit where something is raised to a power of x?

What is the difference between a forward slip and a side slip?



.sh line endings


Shell script with select command to show a list of filesHow to copy clone folder to remote computer in one line?How do I paste to terminal executable content by command line?Sed bash script iterating multiple timesHow do I get the contents of a 1-line text file into the bash command buffer?remove all letters after space in a line that start with specific characterRunning pgrep in a crontabDelete lines that come after a line with a specific pattern in ShellChecking if the end of each line in the file is ending with a letter followed by 8 digits numberRun command for all videos in a directory













0















so i have .sh file with commands
For example



sudo ssh -i '/media/goldstar/Project/!keys/test4.pem' ubuntu@stereolife.website "sudo chmod +x ~/stereoserver/stereoserver"
sudo ssh -i '/media/goldstar/Project/!keys/test4.pem' ubuntu@stereolife.website "sudo ~/stereoserver/stereoserver -s start"


Every line have standart ending with 'rn' symbols



When .sh file executes r symbol appends to each line



Is there way execute .sh file with rn line endings?









share







New contributor




goldstar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    so i have .sh file with commands
    For example



    sudo ssh -i '/media/goldstar/Project/!keys/test4.pem' ubuntu@stereolife.website "sudo chmod +x ~/stereoserver/stereoserver"
    sudo ssh -i '/media/goldstar/Project/!keys/test4.pem' ubuntu@stereolife.website "sudo ~/stereoserver/stereoserver -s start"


    Every line have standart ending with 'rn' symbols



    When .sh file executes r symbol appends to each line



    Is there way execute .sh file with rn line endings?









    share







    New contributor




    goldstar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      so i have .sh file with commands
      For example



      sudo ssh -i '/media/goldstar/Project/!keys/test4.pem' ubuntu@stereolife.website "sudo chmod +x ~/stereoserver/stereoserver"
      sudo ssh -i '/media/goldstar/Project/!keys/test4.pem' ubuntu@stereolife.website "sudo ~/stereoserver/stereoserver -s start"


      Every line have standart ending with 'rn' symbols



      When .sh file executes r symbol appends to each line



      Is there way execute .sh file with rn line endings?









      share







      New contributor




      goldstar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      so i have .sh file with commands
      For example



      sudo ssh -i '/media/goldstar/Project/!keys/test4.pem' ubuntu@stereolife.website "sudo chmod +x ~/stereoserver/stereoserver"
      sudo ssh -i '/media/goldstar/Project/!keys/test4.pem' ubuntu@stereolife.website "sudo ~/stereoserver/stereoserver -s start"


      Every line have standart ending with 'rn' symbols



      When .sh file executes r symbol appends to each line



      Is there way execute .sh file with rn line endings?







      command-line bash scripts





      share







      New contributor




      goldstar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      goldstar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      goldstar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 3 mins ago









      goldstargoldstar

      1013




      1013




      New contributor




      goldstar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      goldstar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      goldstar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          goldstar is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1123401%2fsh-line-endings%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          goldstar is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          goldstar is a new contributor. Be nice, and check out our Code of Conduct.













          goldstar is a new contributor. Be nice, and check out our Code of Conduct.












          goldstar is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1123401%2fsh-line-endings%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

          Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...