Thread: Help with bash please
hello everyone, first post in ubuntu forums!
i'm trying convert windows "bat" file ubuntu "sh" file as tried, couldn't find necessary commands. i'm not sure if it's possible in bash. here's script:
@echo off
set /p url= url=
set /p a= tabs=
set b=0
:loop
set /a b=b+1
start %url%
goto :if2
:if2
if %a%==%b% exit
if not %a%==%b% goto :loop
if can me appreciate it. oh, , sorry if thread doesn't belong general .have mercy
what purpose of script? might easier write new script instead of trying substitute commands.
if want, the advanced bash scripting guide.
note script incomplete, won't anything. don't know url bit left doing nothing.
edit: after looking @ bat file more looks pretty simple. can't figure out url bit about, otherwise here...best of luck,code:#!/bin/bash #set url variable.. not sure does.. setting value of browserurl url=$browserurl #i'm guessing script has browser. don't know how pull variables browser. #set number of open tabs.. a=$tabs b=0 while [ $a != $b ] let b+=1 #not sure start does, putting echo. echo $url done exit
kopkins
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Help with bash please
Ubuntu
Comments
Post a Comment