home *** CD-ROM | disk | FTP | other *** search
- UnixCmds Version 2.00, Copyright October 1993, Alun Jones
-
- These utilities are Freeware. You may distribute them freely with the
- proviso that this file accomanies the distribution. You may not charge more
- than a nominal copying cost for their distribution and if you place them on
- a PD library disk I'd quite like a copy of the disk... These programs may
- NOT be distributed as part of a magazine disk without my permission and may
- not be distributed by Risc Developments or Beebug. I don't guarantee their
- suitability for any purpose and disclaim any responsibility for damage
- caused by their use or misuse.
-
- Is that enough legalese ?
-
- You can contact me at auj@aber.ac.uk, or
-
- Alun Jones,
- Sunny Bank,
- Tregynon,
- Newtown,
- Powys SY16 3EH
-
- I'd be very interested to hear from anyone suggesting additions to this
- collection, though my workload is currently (Oct 93) sky high with thesis
- work, so don't bet on a fast reaction :-(
-
- Bug reports will get a faster reaction as I use these utilities constantly
- and don't like working with buggy programs [especially my own...]
-
- Anyway, to business. The following programs are supplied. Note that some of
- them require perl to be in your Run$Path. These have filetype 097, a totally
- arbitary type that may clash with anything. I use
- Set Alias$@RunType_097 %perl %*0
- In my !Boot file to set these up.
-
- The remaining programs were written in either assembler or C. I'm using GCC
- 2.4.5 (1.Beta.1), so there may be bugs inherited from this early release.
- Future compilations will hopefully use newer versions of GCC as they arrive.
-
- Many of the programs use a simple translation scheme to get from Unix
- pathnames to RISC OS ones, so that rm /bin/ls will translate to rm $.bin.ls
- You may use either the RISC OS filename or the Unix one and most of the time
- it will get the translation right. It fails where / is part of a filename,
- and doesn't handle file.c -> c.file mapping.
-
- Here's a summary of the programs:
-
- chunky - Chop a file into chunks of a specified size.
- Usage: chunky [Chunk_Size_K] filename
-
- splice - Join files together.
- Usage: splice out_file in_file [in_file ...]
-
- glob - Do Unix globbing on a wildcarded name.
- Note that this will interface to perl to provide Unix
- style expansions using the <> perl operation.
- Usage: glob [-s|n] wildcard [wildcard ...]
-
- ls - Clone of Unix ls
- Usage: ls [-lR1F] wildcard [wildcard ...]
-
- strings - Find strings in a binary file.
- Usage: strings file
-
- time - Time a command.
- Usage: time "command [command_args] [command_redirection]"
-
- unsqueeze - Unpack squeezed binaries.
- This program is heavily based on UnSqueeze, the Basic program
- by Colin R. Smale
- /* Reverse the effect of squeeze
- * Works by loading compressed file into memory, calling
- * the decompression routine and saving the result with *save
- * The call to the decompression routine is first surrounded by
- * register-saving code. The BL to the decompression code MUST be
- * the first instruction of the image as it uses R14 (return addr)
- * to find the data it needs.
- * Copyright (C) 1989 Colin R. Smale
- *
- * C conversion Oct 1993, Alun Jones
- */
- Usage: unsqueeze file [out_file]
- [Does anyone have a PD clone of squeeze or similar ? I'd like
- one ;-)]
-
- xargs - Do a command, globbing arguments.
- Usage: xargs "cmd [options] [redirection]" wildcard [wildcard ...]
-
- cat - List a file (PERL).
- Usage: cat [-s] file [file...]
-
- head - List first few lines of a file (PERL).
- Usage: head [-lines] file [file...]
-
- tail - List last few lines of a file (PERL).
- Usage: tail [-lines] file [file...]
-
- mv - Move a file (PERL).
- Usage: mv from to
-
- dirs - List the directory stack (PERL).
- Usage: dirs
-
- popd - Pop a directory from the stack (PERL).
- Usage: popd
-
- pushd - Push a directory to the stack (PERL).
- Usage: pushd dirname
-
- tr - Translate characters (PERL).
- Usage: tr from_letters to_letters
-
- unalias - Unset an alias (PERL).
- Usage: unalias alias_name
-
- alias - Set an alias (PERL).
- Usage: alias [alias_name] [alias_content]
-
- which - List the command run when a command name is typed (PERL).
- Usage: which command
-
- cd - Change directory.
- Usage: cd dirname
-
- df - List free space on a filesystem.
- Usage: df [fs_name:[:disk_name]]
-
- du - List disk usage.
- Usage: du [-a] dirname
-
- fclose - List open files / close named file (RISC OS 3.XX only!).
- Usage: fclose -l
- fclose filename
-
- mkdir - Create a directory [tree]
- Usage: mkdir [-p] dirname
-
- reboot - Reboot the machine (-h does a hard reboot).
- Usage: reboot [-h]
-
- rm - Remove files.
- Usage: rm [-rif] file [file...]
-
- rmdir - Remove directory.
- Usage: rmdir dirname
-
-