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

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

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

View Article



Run multiple line as a single line command bash

Is there any way to run multiple line as a single line command in bash script. This is my multiple line bash script id=15; if [ $id -ge 30 ] then echo Successful echo $id else echo fail echo $id fi I...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images