Hi,
Can anyone help me how to program this
enter id number: 1111 --> any number no validation
enter name :Jose ---> any name no validaytion
after entering a name it will create a name data.txt
Content of data.txt should
1111
Jose
many thanks for the help
grial
2
read number
read name
echo $number >> data.txt
echo $name >> data.txt
was this homework?
(6) Do not post classroom or homework problems.
No matter for this time, but in that case, read the forum rules.
Regards.
thanks for the help...appreciate it .... grial
#!/bin/ksh
echo "enter the id"
read id
echo "enter the name"
read name
if [ "$name" == "rose" ] && [ $id == 1111 ]
then
echo "u r logged in"
echo $name >> data.txt
echo $id >> data.txt
else
echo "invalid id or name"
fi
it works! both. many thanks....more power to the unix guru!