I need to read the contents of multiple files, for now I can read the contents of just one file using the code below , this code further reads the contents present in "rules1.txt" using "strings" . I just need the same functionality but with multiple files to read in "apps.txt" .
for i in $(cat apps.txt);
do
cd /local/apps/oracle/Middleware/user_projects/epmsystem1/EssbaseServer/essbaseserver1/app/$i
echo $i >> /data/shellscripts/essbase/Operate/Overlays/rules1.txt done
for i in $(ls *.rul);do
echo $i >> /data/shellscripts/essbase/Operate/Overlays/rules1.txt
strings $i >> /data/shellscripts/essbase/Operate/Overlays/rules.txt
for i in $(ls *.rul);
you should never usels
result. usefor i in *.rul
this will work better and on all linux you will use your script on. https://unix.stackexchange.com/q/128985/53092 – Kiwy Jun 11 '18 at 07:18