Linux Bash Script, Single Command But Multiple Lines?










71














I have the following script I wrote by searching Google, and it backs up my Linux system to an archive:



#!/bin/bash
# init

DATE=$(date +20%y%m%d)

tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev --exclude=/share/Archive /


This works, but I am wondering if I can format the script to show the command over multiple lines, something like this, so it is easy to edit later:



tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz 
--exclude=/proc
--exclude=/lost+found
--exclude=/sys
--exclude=/mnt
--exclude=/media
--exclude=/dev
--exclude=/share/Archive
/


That way it is easier to read and edit later. Is it possible to format a Bash script this way?










share|improve this question


























    71














    I have the following script I wrote by searching Google, and it backs up my Linux system to an archive:



    #!/bin/bash
    # init

    DATE=$(date +20%y%m%d)

    tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev --exclude=/share/Archive /


    This works, but I am wondering if I can format the script to show the command over multiple lines, something like this, so it is easy to edit later:



    tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz 
    --exclude=/proc
    --exclude=/lost+found
    --exclude=/sys
    --exclude=/mnt
    --exclude=/media
    --exclude=/dev
    --exclude=/share/Archive
    /


    That way it is easier to read and edit later. Is it possible to format a Bash script this way?










    share|improve this question
























      71












      71








      71


      21





      I have the following script I wrote by searching Google, and it backs up my Linux system to an archive:



      #!/bin/bash
      # init

      DATE=$(date +20%y%m%d)

      tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev --exclude=/share/Archive /


      This works, but I am wondering if I can format the script to show the command over multiple lines, something like this, so it is easy to edit later:



      tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz 
      --exclude=/proc
      --exclude=/lost+found
      --exclude=/sys
      --exclude=/mnt
      --exclude=/media
      --exclude=/dev
      --exclude=/share/Archive
      /


      That way it is easier to read and edit later. Is it possible to format a Bash script this way?










      share|improve this question













      I have the following script I wrote by searching Google, and it backs up my Linux system to an archive:



      #!/bin/bash
      # init

      DATE=$(date +20%y%m%d)

      tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev --exclude=/share/Archive /


      This works, but I am wondering if I can format the script to show the command over multiple lines, something like this, so it is easy to edit later:



      tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz 
      --exclude=/proc
      --exclude=/lost+found
      --exclude=/sys
      --exclude=/mnt
      --exclude=/media
      --exclude=/dev
      --exclude=/share/Archive
      /


      That way it is easier to read and edit later. Is it possible to format a Bash script this way?







      linux bash script tar






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 '12 at 3:09









      Jay LaCroix

      366134




      366134




















          3 Answers
          3






          active

          oldest

          votes


















          90














          All you should need to do is add "" at the end of each line and it should be good to go.



          So yours will look like:



          tar -cvpzf /share/Recovery/Snapshots/$(hostname)_$(date +%Y%m%d).tar.gz 
          --exclude=/proc
          --exclude=/lost+found
          --exclude=/sys
          --exclude=/mnt
          --exclude=/media
          --exclude=/dev
          --exclude=/share/Archive
          /


          A Few Shortcuts



          (based on your comment update for setting $HOSTNAME)



          $HOSTNAME



          Two options to set that:




          1. Set HOSTNAME




            HOSTNAME=$(hostname)





          2. Use command substitution (e.g. $(command))



            So it would look like above. That just makes the command run before using it.



          $DATE



          Another variable avoided would be easily:



          $(hostname)_$(date +%Y%m%d).tar.gz 


          $ man date will have the formats for the date options, the above is YYYYmmdd






          share|improve this answer






















          • Thanks guys. One last thing. There seems to be a problem with the file name portion of my script: $HOSTNAME_$DATE.tar.gz When I run the script now, the output file is: 20121120.tar.gz
            – Jay LaCroix
            Nov 21 '12 at 3:26











          • If you want your actual "hostname" put it in back ticks (the tilde "~" key above tab): /share/Recovery/Snapshots/`hostname`_$DATE.tar.gz
            – nerdwaller
            Nov 21 '12 at 3:36











          • Anytime @JayLaCroix - Welcome to SU!
            – nerdwaller
            Nov 21 '12 at 3:40






          • 1




            It is recommended to use $(command) instead of `command`.
            – andrybak
            Jan 25 '15 at 10:46


















          7














          Use the backslash to continue a command on the next line:



          tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz 
          --exclude=/proc
          --exclude=/lost+found
          --exclude=/sys
          --exclude=/mnt
          --exclude=/media
          --exclude=/dev
          --exclude=/share/Archive
          /





          share|improve this answer




















          • Dang it @Paul! Just beat me :D
            – nerdwaller
            Nov 21 '12 at 3:17










          • @nerdwaller Heh, I thought yours got in first!
            – Paul
            Nov 21 '12 at 3:23










          • I went back to update it to make it more useful and get the indentations. I love SU though, by and large.
            – nerdwaller
            Nov 21 '12 at 3:35










          • This doesn't work for me like eg. in alias ub='source ~/.bash_aliases && source $HOME/.bash_aliases && echo "aliases updated."';
            – TheDefinitionist
            Oct 5 '16 at 17:12







          • 1




            @TheDefinitionist Sounds like a different problem to this one. Perhaps open a new question?
            – Paul
            Oct 6 '16 at 2:58


















          1














          The same command, but with comments for each line, would be:



          tar -cvpzf /share/Recovery/Snapshots/$(hostname)_$(date +%Y%m%d).tar.gz `#first comment` 
          --exclude=/proc `#second comment`
          --exclude=/lost+found `# and so on...`
          --exclude=/sys
          --exclude=/mnt
          --exclude=/media
          --exclude=/dev
          --exclude=/share/Archive
          /





          share|improve this answer




















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "3"
            ;
            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
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f508507%2flinux-bash-script-single-command-but-multiple-lines%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            90














            All you should need to do is add "" at the end of each line and it should be good to go.



            So yours will look like:



            tar -cvpzf /share/Recovery/Snapshots/$(hostname)_$(date +%Y%m%d).tar.gz 
            --exclude=/proc
            --exclude=/lost+found
            --exclude=/sys
            --exclude=/mnt
            --exclude=/media
            --exclude=/dev
            --exclude=/share/Archive
            /


            A Few Shortcuts



            (based on your comment update for setting $HOSTNAME)



            $HOSTNAME



            Two options to set that:




            1. Set HOSTNAME




              HOSTNAME=$(hostname)





            2. Use command substitution (e.g. $(command))



              So it would look like above. That just makes the command run before using it.



            $DATE



            Another variable avoided would be easily:



            $(hostname)_$(date +%Y%m%d).tar.gz 


            $ man date will have the formats for the date options, the above is YYYYmmdd






            share|improve this answer






















            • Thanks guys. One last thing. There seems to be a problem with the file name portion of my script: $HOSTNAME_$DATE.tar.gz When I run the script now, the output file is: 20121120.tar.gz
              – Jay LaCroix
              Nov 21 '12 at 3:26











            • If you want your actual "hostname" put it in back ticks (the tilde "~" key above tab): /share/Recovery/Snapshots/`hostname`_$DATE.tar.gz
              – nerdwaller
              Nov 21 '12 at 3:36











            • Anytime @JayLaCroix - Welcome to SU!
              – nerdwaller
              Nov 21 '12 at 3:40






            • 1




              It is recommended to use $(command) instead of `command`.
              – andrybak
              Jan 25 '15 at 10:46















            90














            All you should need to do is add "" at the end of each line and it should be good to go.



            So yours will look like:



            tar -cvpzf /share/Recovery/Snapshots/$(hostname)_$(date +%Y%m%d).tar.gz 
            --exclude=/proc
            --exclude=/lost+found
            --exclude=/sys
            --exclude=/mnt
            --exclude=/media
            --exclude=/dev
            --exclude=/share/Archive
            /


            A Few Shortcuts



            (based on your comment update for setting $HOSTNAME)



            $HOSTNAME



            Two options to set that:




            1. Set HOSTNAME




              HOSTNAME=$(hostname)





            2. Use command substitution (e.g. $(command))



              So it would look like above. That just makes the command run before using it.



            $DATE



            Another variable avoided would be easily:



            $(hostname)_$(date +%Y%m%d).tar.gz 


            $ man date will have the formats for the date options, the above is YYYYmmdd






            share|improve this answer






















            • Thanks guys. One last thing. There seems to be a problem with the file name portion of my script: $HOSTNAME_$DATE.tar.gz When I run the script now, the output file is: 20121120.tar.gz
              – Jay LaCroix
              Nov 21 '12 at 3:26











            • If you want your actual "hostname" put it in back ticks (the tilde "~" key above tab): /share/Recovery/Snapshots/`hostname`_$DATE.tar.gz
              – nerdwaller
              Nov 21 '12 at 3:36











            • Anytime @JayLaCroix - Welcome to SU!
              – nerdwaller
              Nov 21 '12 at 3:40






            • 1




              It is recommended to use $(command) instead of `command`.
              – andrybak
              Jan 25 '15 at 10:46













            90












            90








            90






            All you should need to do is add "" at the end of each line and it should be good to go.



            So yours will look like:



            tar -cvpzf /share/Recovery/Snapshots/$(hostname)_$(date +%Y%m%d).tar.gz 
            --exclude=/proc
            --exclude=/lost+found
            --exclude=/sys
            --exclude=/mnt
            --exclude=/media
            --exclude=/dev
            --exclude=/share/Archive
            /


            A Few Shortcuts



            (based on your comment update for setting $HOSTNAME)



            $HOSTNAME



            Two options to set that:




            1. Set HOSTNAME




              HOSTNAME=$(hostname)





            2. Use command substitution (e.g. $(command))



              So it would look like above. That just makes the command run before using it.



            $DATE



            Another variable avoided would be easily:



            $(hostname)_$(date +%Y%m%d).tar.gz 


            $ man date will have the formats for the date options, the above is YYYYmmdd






            share|improve this answer














            All you should need to do is add "" at the end of each line and it should be good to go.



            So yours will look like:



            tar -cvpzf /share/Recovery/Snapshots/$(hostname)_$(date +%Y%m%d).tar.gz 
            --exclude=/proc
            --exclude=/lost+found
            --exclude=/sys
            --exclude=/mnt
            --exclude=/media
            --exclude=/dev
            --exclude=/share/Archive
            /


            A Few Shortcuts



            (based on your comment update for setting $HOSTNAME)



            $HOSTNAME



            Two options to set that:




            1. Set HOSTNAME




              HOSTNAME=$(hostname)





            2. Use command substitution (e.g. $(command))



              So it would look like above. That just makes the command run before using it.



            $DATE



            Another variable avoided would be easily:



            $(hostname)_$(date +%Y%m%d).tar.gz 


            $ man date will have the formats for the date options, the above is YYYYmmdd







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 21 hours ago









            Pablo Bianchi

            17010




            17010










            answered Nov 21 '12 at 3:14









            nerdwaller

            12.1k12839




            12.1k12839











            • Thanks guys. One last thing. There seems to be a problem with the file name portion of my script: $HOSTNAME_$DATE.tar.gz When I run the script now, the output file is: 20121120.tar.gz
              – Jay LaCroix
              Nov 21 '12 at 3:26











            • If you want your actual "hostname" put it in back ticks (the tilde "~" key above tab): /share/Recovery/Snapshots/`hostname`_$DATE.tar.gz
              – nerdwaller
              Nov 21 '12 at 3:36











            • Anytime @JayLaCroix - Welcome to SU!
              – nerdwaller
              Nov 21 '12 at 3:40






            • 1




              It is recommended to use $(command) instead of `command`.
              – andrybak
              Jan 25 '15 at 10:46
















            • Thanks guys. One last thing. There seems to be a problem with the file name portion of my script: $HOSTNAME_$DATE.tar.gz When I run the script now, the output file is: 20121120.tar.gz
              – Jay LaCroix
              Nov 21 '12 at 3:26











            • If you want your actual "hostname" put it in back ticks (the tilde "~" key above tab): /share/Recovery/Snapshots/`hostname`_$DATE.tar.gz
              – nerdwaller
              Nov 21 '12 at 3:36











            • Anytime @JayLaCroix - Welcome to SU!
              – nerdwaller
              Nov 21 '12 at 3:40






            • 1




              It is recommended to use $(command) instead of `command`.
              – andrybak
              Jan 25 '15 at 10:46















            Thanks guys. One last thing. There seems to be a problem with the file name portion of my script: $HOSTNAME_$DATE.tar.gz When I run the script now, the output file is: 20121120.tar.gz
            – Jay LaCroix
            Nov 21 '12 at 3:26





            Thanks guys. One last thing. There seems to be a problem with the file name portion of my script: $HOSTNAME_$DATE.tar.gz When I run the script now, the output file is: 20121120.tar.gz
            – Jay LaCroix
            Nov 21 '12 at 3:26













            If you want your actual "hostname" put it in back ticks (the tilde "~" key above tab): /share/Recovery/Snapshots/`hostname`_$DATE.tar.gz
            – nerdwaller
            Nov 21 '12 at 3:36





            If you want your actual "hostname" put it in back ticks (the tilde "~" key above tab): /share/Recovery/Snapshots/`hostname`_$DATE.tar.gz
            – nerdwaller
            Nov 21 '12 at 3:36













            Anytime @JayLaCroix - Welcome to SU!
            – nerdwaller
            Nov 21 '12 at 3:40




            Anytime @JayLaCroix - Welcome to SU!
            – nerdwaller
            Nov 21 '12 at 3:40




            1




            1




            It is recommended to use $(command) instead of `command`.
            – andrybak
            Jan 25 '15 at 10:46




            It is recommended to use $(command) instead of `command`.
            – andrybak
            Jan 25 '15 at 10:46













            7














            Use the backslash to continue a command on the next line:



            tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz 
            --exclude=/proc
            --exclude=/lost+found
            --exclude=/sys
            --exclude=/mnt
            --exclude=/media
            --exclude=/dev
            --exclude=/share/Archive
            /





            share|improve this answer




















            • Dang it @Paul! Just beat me :D
              – nerdwaller
              Nov 21 '12 at 3:17










            • @nerdwaller Heh, I thought yours got in first!
              – Paul
              Nov 21 '12 at 3:23










            • I went back to update it to make it more useful and get the indentations. I love SU though, by and large.
              – nerdwaller
              Nov 21 '12 at 3:35










            • This doesn't work for me like eg. in alias ub='source ~/.bash_aliases && source $HOME/.bash_aliases && echo "aliases updated."';
              – TheDefinitionist
              Oct 5 '16 at 17:12







            • 1




              @TheDefinitionist Sounds like a different problem to this one. Perhaps open a new question?
              – Paul
              Oct 6 '16 at 2:58















            7














            Use the backslash to continue a command on the next line:



            tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz 
            --exclude=/proc
            --exclude=/lost+found
            --exclude=/sys
            --exclude=/mnt
            --exclude=/media
            --exclude=/dev
            --exclude=/share/Archive
            /





            share|improve this answer




















            • Dang it @Paul! Just beat me :D
              – nerdwaller
              Nov 21 '12 at 3:17










            • @nerdwaller Heh, I thought yours got in first!
              – Paul
              Nov 21 '12 at 3:23










            • I went back to update it to make it more useful and get the indentations. I love SU though, by and large.
              – nerdwaller
              Nov 21 '12 at 3:35










            • This doesn't work for me like eg. in alias ub='source ~/.bash_aliases && source $HOME/.bash_aliases && echo "aliases updated."';
              – TheDefinitionist
              Oct 5 '16 at 17:12







            • 1




              @TheDefinitionist Sounds like a different problem to this one. Perhaps open a new question?
              – Paul
              Oct 6 '16 at 2:58













            7












            7








            7






            Use the backslash to continue a command on the next line:



            tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz 
            --exclude=/proc
            --exclude=/lost+found
            --exclude=/sys
            --exclude=/mnt
            --exclude=/media
            --exclude=/dev
            --exclude=/share/Archive
            /





            share|improve this answer












            Use the backslash to continue a command on the next line:



            tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz 
            --exclude=/proc
            --exclude=/lost+found
            --exclude=/sys
            --exclude=/mnt
            --exclude=/media
            --exclude=/dev
            --exclude=/share/Archive
            /






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 21 '12 at 3:15









            Paul

            47.8k13121147




            47.8k13121147











            • Dang it @Paul! Just beat me :D
              – nerdwaller
              Nov 21 '12 at 3:17










            • @nerdwaller Heh, I thought yours got in first!
              – Paul
              Nov 21 '12 at 3:23










            • I went back to update it to make it more useful and get the indentations. I love SU though, by and large.
              – nerdwaller
              Nov 21 '12 at 3:35










            • This doesn't work for me like eg. in alias ub='source ~/.bash_aliases && source $HOME/.bash_aliases && echo "aliases updated."';
              – TheDefinitionist
              Oct 5 '16 at 17:12







            • 1




              @TheDefinitionist Sounds like a different problem to this one. Perhaps open a new question?
              – Paul
              Oct 6 '16 at 2:58
















            • Dang it @Paul! Just beat me :D
              – nerdwaller
              Nov 21 '12 at 3:17










            • @nerdwaller Heh, I thought yours got in first!
              – Paul
              Nov 21 '12 at 3:23










            • I went back to update it to make it more useful and get the indentations. I love SU though, by and large.
              – nerdwaller
              Nov 21 '12 at 3:35










            • This doesn't work for me like eg. in alias ub='source ~/.bash_aliases && source $HOME/.bash_aliases && echo "aliases updated."';
              – TheDefinitionist
              Oct 5 '16 at 17:12







            • 1




              @TheDefinitionist Sounds like a different problem to this one. Perhaps open a new question?
              – Paul
              Oct 6 '16 at 2:58















            Dang it @Paul! Just beat me :D
            – nerdwaller
            Nov 21 '12 at 3:17




            Dang it @Paul! Just beat me :D
            – nerdwaller
            Nov 21 '12 at 3:17












            @nerdwaller Heh, I thought yours got in first!
            – Paul
            Nov 21 '12 at 3:23




            @nerdwaller Heh, I thought yours got in first!
            – Paul
            Nov 21 '12 at 3:23












            I went back to update it to make it more useful and get the indentations. I love SU though, by and large.
            – nerdwaller
            Nov 21 '12 at 3:35




            I went back to update it to make it more useful and get the indentations. I love SU though, by and large.
            – nerdwaller
            Nov 21 '12 at 3:35












            This doesn't work for me like eg. in alias ub='source ~/.bash_aliases && source $HOME/.bash_aliases && echo "aliases updated."';
            – TheDefinitionist
            Oct 5 '16 at 17:12





            This doesn't work for me like eg. in alias ub='source ~/.bash_aliases && source $HOME/.bash_aliases && echo "aliases updated."';
            – TheDefinitionist
            Oct 5 '16 at 17:12





            1




            1




            @TheDefinitionist Sounds like a different problem to this one. Perhaps open a new question?
            – Paul
            Oct 6 '16 at 2:58




            @TheDefinitionist Sounds like a different problem to this one. Perhaps open a new question?
            – Paul
            Oct 6 '16 at 2:58











            1














            The same command, but with comments for each line, would be:



            tar -cvpzf /share/Recovery/Snapshots/$(hostname)_$(date +%Y%m%d).tar.gz `#first comment` 
            --exclude=/proc `#second comment`
            --exclude=/lost+found `# and so on...`
            --exclude=/sys
            --exclude=/mnt
            --exclude=/media
            --exclude=/dev
            --exclude=/share/Archive
            /





            share|improve this answer

























              1














              The same command, but with comments for each line, would be:



              tar -cvpzf /share/Recovery/Snapshots/$(hostname)_$(date +%Y%m%d).tar.gz `#first comment` 
              --exclude=/proc `#second comment`
              --exclude=/lost+found `# and so on...`
              --exclude=/sys
              --exclude=/mnt
              --exclude=/media
              --exclude=/dev
              --exclude=/share/Archive
              /





              share|improve this answer























                1












                1








                1






                The same command, but with comments for each line, would be:



                tar -cvpzf /share/Recovery/Snapshots/$(hostname)_$(date +%Y%m%d).tar.gz `#first comment` 
                --exclude=/proc `#second comment`
                --exclude=/lost+found `# and so on...`
                --exclude=/sys
                --exclude=/mnt
                --exclude=/media
                --exclude=/dev
                --exclude=/share/Archive
                /





                share|improve this answer












                The same command, but with comments for each line, would be:



                tar -cvpzf /share/Recovery/Snapshots/$(hostname)_$(date +%Y%m%d).tar.gz `#first comment` 
                --exclude=/proc `#second comment`
                --exclude=/lost+found `# and so on...`
                --exclude=/sys
                --exclude=/mnt
                --exclude=/media
                --exclude=/dev
                --exclude=/share/Archive
                /






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 17 at 22:03









                Alter Lagos

                1214




                1214



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Super User!


                    • 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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2fsuperuser.com%2fquestions%2f508507%2flinux-bash-script-single-command-but-multiple-lines%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

                    27

                    Top Tejano songwriter Luis Silva dead of heart attack at 64

                    Category:Rhetoric