Nested if-else-fi in Linux Shell Script - Java samples - Programming tutorials on Java, C, C++, PHP,

Nested if-else-fi in Linux Shell Script - Java samples - Programming tutorials on Java, C, C++, PHP,

瀏覽:1044
日期:2024-08-21
You can write the entire if-else construct within either the body of the if statement of the body of an else statement. This is called the nesting of ifs. $ vi nestedif.sh osch=0 echo "1. Unix (Sun Os)" echo "2. Linux (Red Hat)" echo -n "Select your os ch...看更多