I have this program that I want to tell the user how may time a user inputted word appears in a file. This is what i have written so far but it doesn't work.
#! /bin/bash echo "Enter the file that is to be searched (~/test/new)" read location echo "Enter the search term" read search $result = (grep -w "$search" $location | wc -w) echo "The search term" $search "appears "$result" time/s in "$location
What could I do to make it work?