I’m trying to build a very simple script which take input from the user to build an address book. The response is then redirected to a simple file where the info will be stored in column format, separated by
Except that I’ve tried everything and I have not been successful at getting the tab to separate my entries.
I tried to figure it out myself, but I’ve spent hours trying and nothing.
Any ideas out there?
Thank you
Rafael.
Here’s my script…
————-
#!/bin/sh
entry=y
while [ $entry = y ]
do
echo -n “Enter Name :”;
read name
echo -n “Enter Street :”;
read street
echo -n “Enter City :”;
read city echo -n “Enter Province :”;
read province
echo -n “Continue? (y)Yes (n)No “;
read entry
echo $name$street$cityt$province } >> adrbook
done