SELECT COMMAND Constructs simple menu from word list. It Allows user to enter a number instead of a word. So User enters sequence number correspondin…
قراءة المزيد#!/bin/bash # for loops echo "all the files in directory--------" for item in * do if [ -f $item ] then echo $item fi done e…
قراءة المزيدBasic Syntax: for VARIABLE in 1 2 3 4 5 .. N do command1 command2 commandN done #OR----------------------------------------------- for VARIABLE in…
قراءة المزيد#!/bin/bash # until loops n=1 # first way echo "----until loops------first way-------------------" until [ $n -gt 10 ] do echo "$n…
قراءة المزيد#!/bin/bash # while loops n=1 while [ $n -le 3 ] do echo "$n" (( n++ )) gnome-terminal & done
قراءة المزيد
Social Plugin