A shell script is nothing more than a readable and executable ASCII text file. In this file you put all of the commands that you want to execute, in sequence. The name of the file can be anything you like.
Any text editor (VI, VIM, pico, etc) can create a shell script file
In addition, shell script files have the ability to detect logic, and are programmable. Just think about what tasks you want to perform and their order, and put it into a file, and there you have a shell script.
You should be able to download the Unix Services for Windows, version 3.5, from Microsoft (free). There are other shell emulators that are available for Windows, which would allow you to use Unix type shell scripting without installing any additional OS. Your question about "virtual UNIX" is unclear ..
This depends widely on the actual shell environment you are using. I suggest you take a look at the YouTube videos, which cover the various scripting elements in detail.
Shell scripting is scripting that uses the Windows Script Host shell. While the above answer may be true for Windows based systems, for Unix and Unix-like systems shell scripting is the ability to create a file of commands and to have them executed automatically, including unattended operation. It is used in the cases where one wishes to automate a process with a given series of commands to be used many times. Shell scripting allows one to automate processes, thereby reducing errors and misspellings by putting the commands in a file and telling the system to execute the commands.
You really don't want to do this in a shell script - scripting languages in Unix typically do not handle or work with floating values, only integers. A better way would be to write a program to do this that works under Unix, such as a 'C" program. See the related link for an example
Unix itself does not use arrays. However, some shell scripting languages such as bash or ksh have simple rudimentary uses of a singly dimensioned array. If you want anything multi-dimensional or special use such as associative arrays, then you need a scripting language such as perl, or awk or python, etc.
We can not perform Shell Scripting in DOS, we can do Batch programing in DOS..
There is no "default" Unix shell. Different Unix vendors shipped different shells.
It can depend on which shell environment you are using, but what I use is: function something { # body of routine } # call the function something
Bash shell scripting is the process of writing a series of commands in a text file that are recognized by the bash shell interpreter.
The use of the "for" loop in many shell scripting languages to do what you want would be fairly confining. However, if you wanted to do that, you could, for example, do the following: for i in 1 2 3 4 5 6 7 8 9 10 do echo $i done
Ken O. Burtch has written: 'Linux Shell scripting with Bash' -- subject(s): Computer Technology, Linux, Nonfiction, OverDrive, UNIX Shells
Some of your options are as follows: Open Solaris. It is based on Sun's Solaris Unix operating system. You can get it from http://opensolaris.org/os/ FreeBSD livecd http://livecd.sourceforge.net/ However, if your only goal is to learn shell scripting all the Linux/Unix variants use the same shells (usually some version of bash, sh, csh, tcsh, or zsh). The bash shell is the same if ran on Linux, Unix, or even Windows.