AminetAminet
Search:
84716 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/ksc_GrepMem.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Search memory for text
Author:Kyzer/CSG
Uploader:Kyzer/CSG <kyzer 4u net>
Type:util/cli
Architecture:m68k-amigaos
Date:2000-02-22
Download:http://aminet.net/util/cli/ksc_GrepMem.lha - View contents
Readme:http://aminet.net/util/cli/ksc_GrepMem.readme
Downloads:867

GrepMem is named after a unix program that hunts through files for a string
or  a  pattern.  However,  GrepMem  doesn't do patterns. It searches for an
exact  match  of  the string you supply. Also, GrepMem doesn't look through
files. It looks through raw memory.

Usage: GrepMem "<search text>" [START <address>] [END <address>] [PADZERO]

Notes:
- You  do  not  have to, but it is a good idea to put "double quotes" round
  the  string  that  you  want to search for. Why? Well, getting your input
  into memory and printing it out a few times will leave some copies around
  in  memory.  If you put quotes around your string, it will search for the
  string WITHOUT THE QUOTES, and if it finds a copy that *is* in quotes, it
  will NOT match it.

- To  define  an area of memory to search, you must supply both a start and
  end  address,  which  both  must  be valid hexadecimal numbers (these can
  begin  with  '0x'  or  '$'  if you like). If you don't complete this, the
  assumed search area will be all of chip memory.

- There is a PADZERO option which, if enabled, means GrepMem will print the
  addresses of matches with full 8 byte addresses, instead of using spaces.

- You  can  break  any  time by pressing CTRL-C. The break is checked every
  time a match is found.

- GrepMem is pure and can be made resident.

- GrepMem is incompatible with Enforcer-like tools, for obvious reasons.

Examples:

look through chipmem for a powerpacker file
1> grepmem "PP20"
look through the amiga rom for references to Amiga
1> grepmem "Amiga" f80000 1000000

Requires 2.0 or better.

****************************************************************************
*          THIS PROGRAM IS PART OF THE "KYZER'S SMALLS" COLLECTION         *
*           The KyzSmlClxn is a set of small yet useful commands.          *
*                                                                          *
*       Commands are installed by copying them to your C: directory.       *
*     Source is included, and is licensed under the GNU GPL version 2.     *
*                                                                          *
*  Email Kyzer/CSG <kyzer at 4u.net> or see the website at http://zap.to/kyz  *
****************************************************************************


Contents of util/cli/ksc_GrepMem.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  597     696  85.8% -lh5- e7d5 Feb 21  2000 GrepMem
[generic]                 1711    4148  41.2% -lh5- 779f Feb 21  2000 GrepMem.asm
[generic]                 1126    2379  47.3% -lh5- 83ef Feb 21  2000 GrepMem.readme
[generic]                  618    1257  49.2% -lh5- 843a Feb 21  2000 hex.asm
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         4 files    4052    8480  47.8%            Feb 22  2000

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>