A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.
.bat to shell script...pls translate
im new to scripting:-(i badly need to translate this one.
can anyone help me with this.
in my 'init.bat' file i have this script
and in my 'go.bat' file i have this.
rem java -classpath .;\dev\xdk\lib\xmlparserv2.jar oracle.xml.parser.v2.oraxsl parser.xslt parser.xslt
rem java oracle.xml.parser.v2.oraxsl parser.xslt parser.xslt
rem java oracle.xml.parser.v2.oraxsl IBDE_BPI_PH_en.xsl Format_Payment_Instructions_200309.xml
java oracle.xml.parser.v2.oraxsl -s IBDE_BPI_PH_en.xsl -l Format_Payment_Instructions_200309.xml -r txt
this two batch files converts xml file('Format_Payment_Instructions_200309.xml') and xsl file to a txt file.
now i have to put this 2 scirpts together in my shell script which contains this lines
for FILE in `ls -1 ../out/*.xml` ; do
echo moving $FILE
mv ../out/$FILE ../xml/$FILE
for FILE in `ls -1 ../out` ; do
echo Renaming $FILE
mv ../out/$FILE ../out/$FILE.txt
unix2dos -n ../out/$FILE ../sent/$FILE
chmod 775 ../sent/$FILE
echo Transmitting $FILE
mutt -s "[EBS] bpi: batch $FILE" -a ../sent/$FILE $EMAIL -b $BCC < /dev/null
thanks in advance for those who can help.