Hallo,
ich benötige für meine Anpassung des WOL Scriptes die Option "w" von grep, leider ist diese bei der busybox von freetz nicht dabei.
laut Hersteller:
ich benötige für meine Anpassung des WOL Scriptes die Option "w" von grep, leider ist diese bei der busybox von freetz nicht dabei.
laut Hersteller:
freetz:grep
grep [-HhrilLnqvsoweFEABC] PATTERN [FILEs...] Search for PATTERN in each FILE or standard input
Options:
-H Prefix output lines with filename where match was found
-h Suppress the prefixing filename on output
-r Recurse subdirectories
-i Ignore case distinctions
-l List names of files that match
-L List names of files that do not match
-n Print line number with output lines
-q Quiet. Return 0 if PATTERN is found, 1 otherwise
-v Select non-matching lines
-s Suppress file open/read error messages
-c Only print count of matching lines
-o Show only the part of a line that matches PATTERN
-m MAX Match up to MAX times per file
-w Match whole words only
-F PATTERN is a set of newline-separated strings
-E PATTERN is an extended regular expression
-e PTRN Pattern to match
-f FILE Read pattern from file
-A Print NUM lines of trailing context
-B Print NUM lines of leading context
-C Print NUM lines of output context
Jemand ne idee, wie man die Option "w" ersetzen kann, oder wie man sie in die freetz-version einbaut?grep --help
BusyBox v1.11.3 (2008-10-07 20:03:50 CEST) multi-call binary
Usage: grep [-HhrilLnqvsoeFEABC] PATTERN [FILEs...]
Search for PATTERN in each FILE or standard input
Options:
-H Prefix output lines with filename where match was found
-h Suppress the prefixing filename on output
-r Recurse subdirectories
-i Ignore case distinctions
-l List names of files that match
-L List names of files that do not match
-n Print line number with output lines
-q Quiet. Return 0 if PATTERN is found, 1 otherwise
-v Select non-matching lines
-s Suppress file open/read error messages
-c Only print count of matching lines
-o Show only the part of a line that matches PATTERN
-m MAX Match up to MAX times per file
-F PATTERN is a set of newline-separated strings
-E PATTERN is an extended regular expression
-e PTRN Pattern to match
-f FILE Read pattern from file
-A Print NUM lines of trailing context
-B Print NUM lines of leading context
-C Print NUM lines of output context