Shell4Win is a shell interpreter accepting UNIX/Linux style shell commands and shell scripts,it enables you to use shell on windows platform. it realised many important features of shell,including pipes,colon seperating commands in one line and redirection <br/ > As a former UNIX administrator, batch is a little too messy for me and I have wasted too much time on its strange syntaxes and arguments. If you happen to be familiar with shell and have to deal with Windows from now and then,There is a great chance you will like Shell4Win <br/ >
Download zip files and all executables can be found in the bin directory.
Shell4Win.exe in the bin directory is our main program,double click and you can get an interactive window where you can type in any available commands.
Shell4Win is also capable of explaining shell scripts by typing in sh example.sh
Shell4Win realised many commands in common use and the list of available commands keeps growing.
[echo,cd,ls,cat,rm,grep,wc,mkdir,touch,cp,mv,read,sh,diff...]
Detailed usage information can be found in the wiki
- Execute commands as far as possible
For example, if you specified a directory as destination that doesn't exist in cp command, Shell4Win will create a directory for you instead of quit the program. So you should be careful when typing some dangerous commands
- Do the same thing to directory and file
Since I don't enough time to add arguments support for every command, So Shell4Win regards files and directories as the same thing in many cases. e.g rm 1 will remove 1 no matter it is a file or directory, it works the same with other similar commands like cp mv and so on
Shell4Win uses following third party tools:
[Administrator@PC-20121113XYVZ]#ls
parser.out
parsetab.py
parsetab.pyc
ply
Shell4Win.py
tools.py
tools.pyc
utilities.py
utilities.pyc
[Administrator@PC-20121113XYVZ]#ls|grep Shell
Shell4Win.py
[Administrator@PC-20121113XYVZ]#pwd
C:\Users\Administrator\Documents\GitHub\Shell4Win\src
[Administrator@PC-20121113XYVZ]#cat example.sh
echo "#This is a example shell script written to demostrate a shell interpreter named Shell4Win#"
echo "Let's start with some simple commands"
echo "ls can show files under current directory:"
ls
read "Press Enter key to continue"
echo "pwd can show you current directory:"
pwd
read "Press Enter key to continue"
echo "mkdir can make a directory,and grep can be used with pipes:"
mkdir test
ls|grep test
echo "cd can change current directory:"
cd test
echo "redirection can create files:"
echo "test content1">1
echo "test content2">2
cat 1
cat 2
echo "diff can be used to compare two text files:"
diff 1 2
[Administrator@PC-20121113XYVZ]#sh example.sh
#This is a example shell script written to demostrate a shell interpreter named Shell4Win#
Let's start with some simple commands
ls can show files under current directory:
example.sh
parser.out
parsetab.py
parsetab.pyc
ply
Shell4Win.py
test
tools.py
tools.pyc
utilities.py
utilities.pyc
Press Enter key to continue
pwd can show you current directory:
C:\Users\Administrator\Documents\GitHub\Shell4Win\src
Press Enter key to continue
mkdir can make a directory,and grep can be used with pipes:
Directory already existed!
test
cd can change current directory:
change current directory to test
redirection can create files:
test content1
test content2
diff can be used to compare two text files:
line 1: test content1 test content2