Quantcast
Channel: Run multiple line as a single line command bash - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2

Answer by Dai for Run multiple line as a single line command bash

$
0
0

Firstly you could replace the && with ; which is equivalent to the line breaks in your multiple-line code. Secondly I don't think you need the && (or ;) after the then statement.

The difference between the && and ; line breaks is that && will run the next block of code if and only if the previous block has executed properly.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>