下面这段怎么改写成Shell?
set i=-1
if %ComputerName%==AAA set Parameter_file=..\parameter\edw002m_parameterD.txt
if %ComputerName%==BBB set Parameter_file=..\parameter\edw002m_parameterU.txt
if %ComputerName%==CCC set Parameter_file=..\parameter\edw002m_parameterP.txt
if %ComputerName%==DDD set Parameter_file=..\parameter\edw002m_parameterP.txt
echo %Parameter_file%
echo %data% %time% > %LOG_FILE%
echo %ComputerName% >> %LOG_FILE%
for /f "delims=" %%a in ('more ^< %Parameter_file%') do (
set/a i+=1 & for /f %%z in ('echo/%%i%%') do (
if "%%z"=="0" set MSSQL_NAME=%%a
if "%%z"=="1" set MSSQL_USER=%%a
if "%%z"=="2" set MSSQL_PWD=%%a
if "%%z"=="3" set EVOICE_SERVER=%%a
)