Hi,
I am trying to open a file that I have created from withn a shell script and cannot seem to get it working. Does anyone have any ideas?
Thanks.
Hi,
I am trying to open a file that I have created from withn a shell script and cannot seem to get it working. Does anyone have any ideas?
Thanks.
Do u have a specific code that is not working? Or in general if u want some sample code on how to open files from shell scripts then please
#!/bin/ksh
for values in `cat a.txt`
do
echo ${values}
done
Hi,
I am trying to open a file name menu from the following shell script:
echo "Please enter your password"
#get password:
echo "Password: "
read password
#create for user name
name=$(grep $user ./test2 | cut -f1)
password=$(grep $password ./test2 | cut -f2)
if [ "$user" == "$name" ] && [ "$password" == "$password" ];
then
echo "Hello $name welcome to this ATM"
else
echo "Login Failed"
fi
Thanks.