I am trying to prompt the user to enter info then once they have entered the info for the fields then >> the new info to an exisiting file.
Sample Code:
------------
echo Enter a userid:$1
echo Enter the first name:$2
echo Enter the last name:$3
$1+$2+$3 >> users.ref
I want to keep the $1,$2, and $3 data all on the same line seperated by only single spaces.
Also if someone could show me how to reverse the process as well that would be useful.
Sample Code:
------------
echo Enter a userid:$1
echo Enter the first name:$2
echo Enter the last name:$3
$1+$2+$3 >> users.ref
I want to keep the $1,$2, and $3 data all on the same line seperated by only single spaces.
Also if someone could show me how to reverse the process as well that would be useful.