Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
- The problem statement, all variables and given/known data:
Print out problem with line follow:
echo There are '$cat $fname | wc -l' contacts in database
how do I replace single quote with a backquote from Vi or nano?
- Relevant commands, code, scripts, algorithms:
#!/bin/bash
#export all output to fname
fname=names.dat
echo "Please Enter your contact name as follow:"
echo "Given name: "
read name
echo "Surname: "
read surname
echo "Street address"
read street
echo "City you live in"
read city
echo "States"
read states
echo "Zip code"
read zipcode
echo $name $surname $street $city $states $zipcode >> $fname
{
echo
echo Here are the current contacts in the database:
echo
cat $fname
} | more
echo There are "$cat $fname | wc -l" contacts in database
- The attempts at a solution (include all code and scripts):
There are names.dat | wc -l contacts in database
My attempt to printout how many users in database
- Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
This does not relate to my school work.. Addition info that I learn from my own.
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).