Article 5HJ2W Reading from EndPointsPriority.txt and finding that file name in other Directory in .sh

Reading from EndPointsPriority.txt and finding that file name in other Directory in .sh

by
parveen.gupta.23091987
from LinuxQuestions.org on (#5HJ2W)
EndPointsPriority.txt contains>>
0001105
0005074
0079557

Reading from EndPointsPriority.txt and finding that file name in other Directory in .sh

This is working >>>>>>>>>>>>

echo "Start"
ePFileName='../resources/EndPointsPriority.txt'
counteP=1
while IFS= read -r eP; do
# reading each line
echo "Line No. $counteP : $eP"
#issue on below line
for file in $(find /apps_01/CBK/T5G2Batch/dataTqr/ -iname "*0001105*" 2>/dev/null)
do
# if file does not exist, don't try to send it
[ -f "$file" ]||continue
echo "File found $file"
done
counteP=$( expr $counteP + 1 )
echo "new count $counteP"
done < $ePFileName
echo "End"

This is not working >>>>>>>>>>>>

echo "Start"
ePFileName='../resources/EndPointsPriority.txt'
counteP=1
while IFS= read -r eP; do
# reading each line
echo "Line No. $counteP : $eP"
#issue on below line
for file in $(find /apps_01/CBK/T5G2Batch/dataTqr/ -iname "*$eP*" 2>/dev/null)
do
# if file does not exist, don't try to send it
[ -f "$file" ]||continue
echo "File found $file"
done
counteP=$( expr $counteP + 1 )
echo "new count $counteP"
done < $ePFileName
echo "End"latest?d=yIl2AUoC8zA latest?i=esY4SEY3GiY:QqjdVF7YD-0:F7zBnMy latest?i=esY4SEY3GiY:QqjdVF7YD-0:V_sGLiP latest?d=qj6IDK7rITs latest?i=esY4SEY3GiY:QqjdVF7YD-0:gIN9vFwesY4SEY3GiY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments