# echo "Mayank"1: 'echo "2115000613"2echo "85.7"3echo -e "Mayank \n 2115000613 \n 85.7"4echo -e "Mayank \t 2115000613 \t 85.7"5echo "Enter name"6read name7echo "Enter roll number"8read rollnumber9echo "my name is $name and roll number is $rollnumber "10a=1011echo $a12a=2013unset a14echo $a15echo "current working directory"16whoami17echo "listing of files"18echo "calendar"19cal '20# echo "today's date"21# date "+%D"22# pwd2324: 'echo "first args: $1"25echo "second args: $2"26echo "third args: $3"27echo "total args: $#"28echo "process name: $0"29echo "process id: $$"30echo "argument: $@"31echo "args: $*"32a=533b=334c=`expr $a \* $b`35echo $c '36# read two no. and perform all airthematic operation37# input 3 no. by command line argument and perform above wala38# find avg. of three no.39: 'echo "enter value of a"40read a41echo "enter value of b"42read b43c=`expr $a + $b`44echo $c45d=`expr $a - $b`46echo $d47e=`expr $a / $b`48echo $e49f=`expr $a \* $b`50echo $f '51: 'echo "firstargs: $1"52echo "secondargs: $2"53echo "thirdargs: $3"54c=`expr $1 + $2 + $3`55echo $c56d=`expr $1 - $2 - $3`57echo $d58e=`expr $1 / $2 / $3`59echo $e60f=`expr $1 \* $2 \* $3`61echo $f '62: 'echo "enter value of a"63read a64echo "enter value of b"65read b66echo "enter value of c"67read c68sum=`expr $a + $b + $c `69avg=`echo "scale=2 ; $sum / 3" | bc`70echo $avg '71# THERE must be spaces b/w operation and expressions72# all the conditional expressions should be inside square braces with spaces around them73# read a74# read b75# read c76# if [ $a -gt $b ]77# then78# if [ $a -gt $c ]79# then80# echo "a"81# else82# echo "c"83# fi84# else85# if [ $b -gt $c ]86# then87# echo "b"88# else89# echo "c"90# fi91# fi92# read a93# read b94# read c95# sum=`expr $a + $b + $c `96# avg=` echo "scale=0 ; $sum / 3" | bc `97# if [ $avg -ge 80 ]98# then99# echo "first div."100# elif [ $avg -ge 65 -a $avg -lt 80 ]101# then102# echo "second div."103# elif [ $avg -ge 45 -a $avg -lt 65 ]104# then105# echo "third div."106# else107# echo "fail"108# fi109# read var110# case $var in111# 1) echo "monday";;112# 2) echo "tuesday";;113# 3) echo "wednesday";;114# 4) echo "thrusday";;115# 5) echo "friday";;116# 6) echo "saturday";;117# 7) echo "sunday";;118# *) echo "wrong input";;119# esac120# print no. from 1 to 10121# print the multiplication table of a given no.122# write a program to check a no. is palindrom or not123# write a program to compute m^n124# write a program to read student name roll no. in the same line and then write the line to a file student.txt it then prompts you for more entries125# i=1126# while [ $i -le 10 ]127# do128# echo "$i"129# i=`expr $i + 1`130# done131# read a132# i=1133# while [ $i -le 10 ]134# do135# f=`expr $a \* $i`136# echo "$f"137# i=`expr $i + 1`138# done139# read a140# o=$a141# sum=0142# while [ $a -gt 0 ]143# do144# r=`expr $a % 10 `145# sum=`expr $sum \* 10 + $r `146# a=`expr $a / 10 `147# done148# if [ $o -eq $sum ]149# then150# echo "palindrom"151# else152# echo "not palindrom"153# fi154# read a155# read b156# x=1157# while [ $b -gt 0 ]158# do159# x=`expr $x \* $a `160# b=`expr $b - 1 `161# done162# echo "$x"163164# echo "enter details"165# read input166# while [ "$input" != quit ]167# do168# echo "$input" >> student.txt169# read input170# done171# echo "finish"172filename="bash.string.txt"173echo ${filename%.*}174echo ${filename#*.}175176177178179180181182183184185186187