Have tried the search, but nothing resembles what I'd like to accomplish. I am attempting to write a script that will allow the user to input a list of data at the command prompt, then the data is used by another script for processing. I am allowing the user a list of 10 members in order to process, but my current problem is that the user will have to hit <enter> however many times up to 10 if they have less than 10 members to include in the list. I'm guessing I need some conditional statement that tells the script to start processing the data if the user decides that they do not have 10 members. But I cannot seem to accomplish this.. Here's what I have below for that part of the script (as you can see, I am very new to this):
echo "Paste your member list to port."
read a
read b
read c
read d
read e
read f
read g
read g
read h
read i
read j
echo $a > list_file
echo $b >> list_file
echo $c >> list_file
echo $d >> list_file
echo $e >> list_file
echo $f >> list_file
echo $g >> list_file
echo $h >> list_file
echo $i >> list_file
echo $j >> list_file
cat list_file| xargs -i getx \{\}
rm list_file
echo "Porting List... Please Wait"
Any help is greatly appreciated..