Skip to main content

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...
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
best of luck,
kopkins


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Help with bash please


Ubuntu

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues