I am fairly new to scripting, I am interesting in writing a shell script which acts as a DOS command. I want to be able to utilize dos commands such as cd, dir, type, del, ren, and copy to do the same functions as the UNIX commands, cd, ls, cat, rm, mv, and cp. I want my script to loop continuously, so I may continue to type in dos commands until I type CTRL-C to exit.
I was thinking I can store the the dos commands in variables $command, $arg1 and $arg2 for example. I can then consider the command by a case statement which will then execute the appropriate UNIX command echoing the result.
So for example in my unix prompt I type:
the script should know I want to utilize rm -f
Can someone please help me set this first example up, and perhaps I can do the rest?