Write a Bash script that finds all occurrences of a given string in a file. The script should ask the user for the path of the file and the string to search for. It should then display the line number and the text containing the searched string for each occurrence found. The script should be designed to work with different file types such as text, CSV, and JSON files. Additionally, the script should be able to handle cases where the searched string is part of a larger word or phrase.
This prompt doesn't seem malicious.