Mastering Linux Shell Scripting, by Ebrahim Mokhtar; Mallett Andrew;

Mastering Linux Shell Scripting, by Ebrahim Mokhtar; Mallett Andrew;

Author:Ebrahim, Mokhtar; Mallett, Andrew; [Mokhtar Ebrahim]
Language: eng
Format: epub
Tags: COM088010 - COMPUTERS / System Administration / Linux and UNIX Administration, COM046070 - COMPUTERS / Operating Systems / Linux, COM088000 - COMPUTERS / System Administration / General
Publisher: Packt Publishing
Published: 2018-04-18T13:53:41+00:00


Questions

How many lines will be printed on screen from the following script?

#!/bin/bash for (( v1 = 12; v1 <= 34; v1++ )) do echo "$v1" done > output

How many lines will be printed on the screen from the following script?

#!/bin/bash for (( v=8; v <= 12; v++ )) do if [ $v -ge 12 ] then break fi echo "$v" done

What is wrong with the following script? And how can you fix it?

#!/bin/bash for (( v=1, v <= 10, v++ )) do echo "value is $v" done

How many lines will be printed on the screen from the following script?



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.