ksh has many powerful facilities to make life easier for you. Below, you will find some useful things that may save you a lot of time.
ls *.p
to get a directory listing of just the Pascal source files.
You could just keep re-executing the command from the history, but there is an even quicker way. ksh can remember an alias for the command: this is a name that stands for the whole command, and you can ask for the command to be executed simply by using the alias name as if it were a command itself. Let us suppose that you choose the alias lspas to stand for the command above, then you can instruct ksh to remember this by typing the command
alias lspas='ls *.p'
(Note that the ' character is on the same key as ",
next to RETURN.)
and from then on whenever you type
lspas
as a shell command, the command ls *.p will be executed.
If you type the command alias by itself, ksh will list the current aliases that are set up (it sets up several automatically). Two things to remember about aliases: they can only be used in the window in which you set them up; and ksh forgets about them when you log off (but see below).