linux music tools It is quite possible and was done all the time in the bad
Tony Baechler
tony at baechler.net
Wed Jul 29 09:23:03 UTC 2015
OK, how about this? Even taking into account the differences in command
names (mv instead of rename, cp for copy, etc) how do you make something
like this work?
@echo off
echo Test DOS batch file
if "%1" == "" goto help
goto end
:help
echo You must enter a command line parameter.
:end
echo You entered %1.
Granted, the above example doesn't actually do anything useful, but trying
to do something simlar in bash won't work. Again, I realize you use $1
instead of %1, but you can't use "if" and "goto" in the same way. I don't
think there even is a goto command.
On 7/28/2015 9:43 PM, Christopher Chaltain wrote:
> I'm not sure why you're bringing aliases into the discussion. You don't'
> need to use aliases if you're just writing a simple script analogous to a
> batch file. If you want to batch commands in a shell script then you can do
> that just as you do in DOS. The only real difference I can think of is that
> your script file has to be executable and has to start with the scripting
> language you want to use. If that's what's making the outline of scripts
> more complicated then I can't argue with that. If what you're familiar with
> makes something simpler and makes more sense then again, I can't disagree
> with that.
>
More information about the Blinux-list
mailing list