
|
84783 packages online
|
|
 |
|
|
|
No screenshot available
|
|
grep scans file(s) looking for a given pattern. This pattern is not
an Unix regexp, but an AmigaDOS pattern; * can be used everywhere as
synonim of #?. Wildcard characters are allowed in the file name(s),
everywhere BUT NOT in the device part-e.g. DF0:*/*.c BUT NOT DF*:... .
The options can be specified alone or together, e.g. grep -i -l ...
or grep -il ... . Example: grep -il assign s:*
GREP Usage: grep [options] pattern [ File [ File [ ... ]]
Purpose: Searches files (a pattern can be given in the file
name(s)) for lines containing a given pattern (with
the AmigaDOS conventions). If no file names are
given, grep assumes standard input.
Exit status is 0 if any matches are found, 5
(warning) if none, 10 (error) for unreadable files
or other errors.
Options: -c Print only the number of the matching lines;
-i Ignore upper/lower case distinctions in the
comparison;
-l Print the name of the files with matching lines
(once);
-n Precede each line by its line number;
-v Print all lines except those that contain the
pattern.
|
Contents of text/misc/grep.lha
PERMISSION UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[generic] 7015 12036 58.3% -lh5- c484 Jun 17 1992 grep
[generic] 3512 10067 34.9% -lh5- b70a Jun 13 1992 grep.c
[generic] 124 170 72.9% -lh5- 56a5 Jun 17 1992 makefile
---------- ----------- ------- ------- ------ ---------- ------------ ----------
Total 3 files 10651 22273 47.8% Aug 14 1992
|
|
|
 |
Page generated in 0.01 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |