www.digitalmars.com Home | Search | CTG | RTL | IDDE | STL
Last update Sat Apr 8 23:54:06 2006
Compiler & Tools Guide

Compiling
Compiling Code
C Implementation
C++ Implementation
Language Extensions
Mixing Languages
Assembly Language
Inline Assembler
Optimizing Code
Numerics Programming
Regular Expressions
Acrtused
Pragmas
Precompiled Headers
Predefined Macros
Warning Messages
Error Messages
Runtime Messages


Linking
Optlink
Switches
Module Definition Files
Operation and Design
Error Messages


Win32 Programming
Win32 Programming


DOS and Win16
Programming

Memory Models
16 Bit Pointer Types
and Type Modifiers

Handle Pointers
DOS
DOS 32 (DOSX)
Win16
Win16 DLLs
Win16 Prolog/Epilog


C/C++ Extensions
Contract Programming
__debug statement
__debug declaration
Dynamic Profiling
Embedding C in HTML


Tools
BCC
CHMOD
CL
COFF2OMF
COFFIMPLIB
DMC
DIFF
DIFFDIR
DUMP
DUMPOBJ
DUMPEXE
EXE2BIN
FLPYIMG
GREP
HC
IMPLIB
LIB
LIBUNRES
MAKE
MAKEDEP
ME
OBJ2ASM
PATCHOBJ
RC
RCC
SC
SHELL
SMAKE
TOUCH
UNMANGLE
WHEREIS


Porting to DMC++
Switching to DMC++
from Microsoft
from Borland
Porting Guide


GREP: Search Files for Pattern

GREP is used to search for strings in multiple files. Digital Mars grep is handy because it's fast, will search system and hidden files, will search for wide characters strings, and will search binary files.

Command syntax:

	grep [switches] pattern { file }
pattern is the string to search for.
file is the name of the file to search. Multiple files can be listed, and wildcards can be used.
-h Suppress printing of filenames.
-i Become case-insensitive.
-r Recursively search subdirectories.
-v Verbose; print name of each subdirectory as it is searched.
-z Search for wide character strings.
GREP will print each line in each file that contains a match for pattern. It works with binary files as well as text files.

Example:

To search all .c files for the string 'this':
	grep this *.c
	
To find which library file is the one to link for FindFirstFile():
	grep -i findfirstfile \dm\lib\*.*