RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    help for script

    Scheduled Pinned Locked Moved Help and Support
    scripts
    24 Posts 3 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ClydeC
      Clyde @wsamael
      last edited by

      @wsamael said in help for script:

      @Clyde the first solution it's for convert my script to unix script ?

      Both are. The first doesn't require the installation of another tool, as sed is party of most Linux base installations; the second may be more easy to remember as something like 's/\r$//'. ;)

      1 Reply Last reply Reply Quote 0
      • W
        wsamael
        last edited by

        I try

        sed -i 's/\r$//' root.sh
        

        it's work but I see no difference beetwen my script, how did you see what 's wrong with my script ? (i would be understand ^^ )

        ClydeC 1 Reply Last reply Reply Quote 0
        • ClydeC
          Clyde @wsamael
          last edited by

          @wsamael Your error message said:

          '\r': command not found
          

          Windows ends a line in a text file with a carriage return (\r) and a line feed (\n), wheras unixoid systems only use \n. Thus Retropie's command shell bash rejected the \r in your file as an unknown command.

          1 Reply Last reply Reply Quote 0
          • W
            wsamael
            last edited by

            ok i understand thank you ;)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.