Hi I have search everywhere for this but I haven't got any result. so here is my question?
I am trying to ask user to enter a name and then searching that name from a file and from a specific column. If user enter something, it should only displaying that name from that specific column and If the user enters quit, then program should quit. I am really having trouble with this. Any help will be appreciate.
echo "Name:"
while read name
do
if [ $name=0 ]
then
echo $name < filename
cut -c 5-19 filename
#echo "name is $name."
elif [ $name = "Quit" ]
then
exit
fi
done