LINUX.ORG.RU

Сообщения dgrigoryev

 

Помогите разобраться c bash скриптом.

Форум — Development

Помогите разобраться.

есть windows скрипт

if "%1" == "" goto End if "%2" == "" goto End if "%3" == "" goto End echo rem Lines of %1>%3 set count=1 for /f "tokens=*" %%i in ('type %1') do (call :SetLineVariable %2 "%%i" %3) goto End :SetLineVariable echo set %1_LINE%count%=%2>>%3 set /a count+=1 goto :EOF :End

может кто подсказать, как переложить видовую конструкцию цикла

for /f "tokens=*" %%i in ('type %1') do (call :SetLineVariable %2 "%%i" %3)

на linux shell (на bash).

Спасибо.

>>>

dgrigoryev
()

RSS подписка на новые темы