I want a script that will prompt a user to enter 10 numbers and out put them into a file. This what I have so far, but isn't working. I'm guessing it's something easy I'm not seeing. Thanks for any help.
#!/usr/bin/ksh
echo "Enter 10 numbers"
for i in 1 2 3 4 5 6 7 8 9 10
do
read .... >> numbers
done
Is it possible to change the code based on the number of user inputs . For example user will give n number of inputs which needs to be store on a file and perform task based on the values of the file .
Is it possible to change the code based on the number of user inputs . For example user will give n number of inputs which needs to be store on a file and perform task based on the values of the file .