[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] A command line shell for the Mac ?



Title: A command line shell for the Mac ?

Has anyone ever written a shell in MacPerl to emulate the Unix shell?
[My background is Unix]

I have started such a program because I have a need to work through folders
of files and view the contents, rename, delete, move files, change the
File type/creator, and convert from Unix or DOS <CR>/<LF> issues.

Viewing files with BBEdit then switching back to Finder to delete or rename
is a pest, and I would like to drive the whole process in a command driven shell.

Several years ago I used a small Mac program that emulated a shell, but since
I have MacPerl already installed, a perl script takes up the least footprint.

The command I am emulating are as follows:

cd        Change Directory
pop      Go to parent directory
ls         List the Directory (files and directories are prefixed with a number to
           serve as shortcuts)
rm       Remove/delete
mv       Rename (move) a file or move to another folder
cp        Make a copy of a file
more    Display contents of a file.  Only first 80 characters displayed as well
           as warning if a file is Unix or DOS text.
sign     Set the type and creator of a file based on an internal table for suffixes
           eg if suffis is ".doc" make it a Word document, ".gif" and ".jpg" belong
           to Graphics Converter, ".htm" to BBedit, etc.   


Charles Cave
charles@irg.com.au