|
Qshell vs. DOS
Hey, Ted:
Learning to write Qshell scripts reminds me of the days
when I wrote DOS batch files on a regular basis. (I still
write a DOS batch file occasionally, but not as
frequently as I used to.) Do you have a handy
DOS-to-Qshell command reference you could share with
us?
-- Chet
Sure. I have a table of rough equivalents. But first, let
me make a comment.
In Unix shells, commands are case-sensitive, but that is
not true of Qshell. To get a directory listing, you can
use either form of the following command:
ls -l
LS -l
However, options are case-sensitive, so the following is
not equivalent to the previous two commands under
Qshell.
LS -L
Here's the table. Keep in mind that these are not exact
equivalents. That is, the Qshell commands do not behave
exactly like their DOS counterparts.
|
DOS |
Qshell |
Function |
| dir |
ls -l |
Show directory
contents |
| type |
cat |
Display contents of
a file |
| cd, chdir
|
cd |
Change current
directory |
| md,mkdir
|
mkdir |
Create (make) a
directory |
| rd, rmdir
|
rmdir |
Remove (delete) a
directory |
| dir /w |
ls |
Show directory
contents |
| copy |
cp |
Copy a file
|
| ren, rename
|
mv |
Rename a file
|
| del, erase
|
rm |
Remove (delete) a
file |
| date |
date |
Display date
|
| attrib |
chmod |
Change file
attributes |
| move |
mv |
Move a file to
another directory |
| echo |
echo |
Display text
|
| find |
grep |
Search a file
|
| sort |
sort |
Sort stdin
|
| print |
pr |
Print to stdout
|
| command
|
qsh |
Invoke a command
shell |
| cd |
echo $PWD
|
Display current
directory |
| path |
echo $PATH
|
Display path
|
| cls |
F13 key |
Clear the display
|
-- Ted
|
Sponsored
By
TRAMENCO |
|
Learn what's over the horizon for the iSeries
and AS/400, and how it will impact your career, by attending
the premier training event of 2002. It's the iSeries
and AS/400 Connection Conference June 16 – 19, 2002
in Naples Florida. Join 19 of the industries greatest
minds including Dr. Frank Soltis, Skip Marchesani,
Wayne O. Evans, Susan Gantner, Jon Paris, Marie Finnegan-Cronin,
and Howard Arner, Jr. as they deliver
AS/400 training and education to prepare you for the
challenges of tomorrow. A full agenda of 96 sessions
(including 10 hands-on labs) provide practical instruction
in a full range of topics, including:
- Understanding Websphere Development Studio
- Accessing DB2/400 data from Linux
- Learning how JavaBeans are used
- Make the most of RPG IV's built in functions
- SQL Tricks and Techniques
- ABCs of System Management
- And much more!
Whether you are an old pro, or just getting your feet
wet, there is something for everyone during this
intensive four-day conference. Best of all, your
classroom is the Registry Resort and Spa, Naples Florida's
premier 5-star resort. To register, or for more information,
call 1 800 897.5923, or go to the web at www.tramenco.com.
But hurry, you must register before May 15, 2002 to save $200
off the standard registration and be eligible for special hotel rates.
|
|
|
 |
|