Professional Documents
Culture Documents
TYBCA – 06
bhavinmodi04@gmail.com
Linux Program
1. Write a shell that reads Student No, Name, Sub1, Sub 2, Sub3
marks & generate the formatted marksheet.
Vi stud
If[ $# -ne 5 ]
Then
echo “Usage - $0”
echo “Enter Student No, Name, Sub1, Sub2,
Sub3”
exit 1
If
echo “==============”
echo “Student No :$1”
echo “Student Name :$2”
echo “Sub1 :$3”
echo “Sub2 :$4”
echo “Sub3 :$5”
echo “==============”
2. Write a shell script that display the contents of specified directory.
If[ $# -ne 1 ]
Then
fi
If cat $1
then
fi
Vi greater
If[ $# -ne 2 ]
Then
exit 1
fi
n1=$1
n2=$2
Then
Then
Then
Else
Exit
Copy()
cp yy.bak
read
return
Rename()
my chiocemenu
read
return
#Exit
Exited()
exit1
read
#input file
1. Bhavin Manager
3. Vivek Clerk
#pages 5 file
read ch
for w in input
do
if[ $? –eq 0 ]
then
else
fi
done
6. If cost price & selling price of an item is input though the keyword,
write a program to determine weather the seller has made profit or
loss. Also determined how much profit was made or loss.
Vi price
read cp
return
read sp
return
n= expr cp – sp
if[ n –it 0 ]
then
else
fi
Contents of etc/password
Exit
If test $# = 1
Then
Case $1 in
4) exit1
esac
else
fi