If I understood correctly you need to search a word % Retail by State in all files under path /usr/sas/reports/RetailSalesTaxallocation . Following may help you in same.
find /usr/sas/reports/RetailSalesTaxallocation -type f -exec grep -l "%Retail by State" {} \+ 2>/dev/null
Let me explain you completely here about the code shown above.
Let's say we have following example files.
cat ./test34233
% Retail by State
cat ./test34232
% Retail by State 213121
Now When I run following command it will give these 2 files as follows.
find . -type f -exec grep -l "% Retail by State" {} \+ 2>/dev/null
./test34233
./test34232
Also when I run following command too it will give results as follows.
find . -type f -exec grep -l "Retail by State" {} \+ 2>/dev/null
./test34233
./test34232
Let me explain you the command here.
find /usr/sas/reports/RetailSalesTaxallocation -type f #### Means in Path /usr/sas/reports/RetailSalesTaxallocation look for files.
-exec grep -l #### Perform grep operation and search word "% Retail by State"
2>/dev/null #### Put standard errors in /dev/null (don't show on screen).
Hope this helps you.
find /usr -type f -name "sync_dailyscheduler_data.sh" 2>/dev/null
Where -type f means it will look for only files, -name means it will look for the file name proceeding to it, 2>/dev/null means put any standard errors to /dev/null more specifically don't show them on standard output. You can go through man find page too to read more nice options for find command, hope this helps.