Lab 1: Leap year or not 08:57 echo "Enter the year" read year if [ `expr $year % 4` -eq 0 ] then echo "Leap Year" else echo "Not L...
Lab 2: Program to check whether the given number is ODD or Even 08:56 echo "Enter the Number" read n if [ `expr $n % 2` -eq 0 ] then echo "Even" else echo "ODD" fi For m...
Lab 3: Copy the file from one directory from another 08:55 echo "Enter the name of the two directories/folders and create them" read dir1 read dir2 mkdir $dir1 mkdir $dir2 cd $dir1 echo ...
Lab 4: Reverse of a number 08:54 echo "Enter The Number" read n rev=0 while [ $n != 0 ] do num=`expr $n % 10` rev=`expr $rev \* 10 + $num` n=`expr $n ...
Lab 5: Find the length of the string 08:52 echo "Enter the string" read str len=`expr length $str` echo "Length of $str = $len"
Lab 6: write a menu driven program to demonstrate commmands a) cat b)Who c)ls 08:51 while [ 1 ] do echo "menu" echo "1.cat" echo "2.who" echo "3.ls" echo "Enter the choice" ...
Lab 7: Program to find largest among three number 08:49 echo "Enter the value of first, second & third" read first read second read third if [ $first -gt $second -a $first -gt $thir...
Lab 8: Program to count the number of lines, words and characters in the given file 08:48 echo "enter the existing file" read filename if [ -f $filename ] then echo "Total line in $filename" wc -l $fil...
Lab 9: Praogram to find the grade of the student depending upon scored marks 08:47 echo "Enter the name of the student" read name echo "Enter the marks of three subjets" read subject1 read subject2 read...
Lab 10: Program to find the multiplication table of a given number 08:45 echo "Enter the number" read n i=1 while [ $i -le 10 ] do mul=`expr $n \* $i` echo "$n * $i =$mul" i=`expr ...