Quote:
Originally Posted by vgersh99
Assuming that a sample log file record is one on ONE line...
one way:
Code:
sed 's/.*dst_port=\([^ ][^ ]*\).*/\1/' myLogFile
P.S. Pls use vB Codes when quoting sample data/source - no line wraps either.
|
The above code
sed 's/.*dst_port=\([^ ][^ ]*\).*/\1/' myLogFile
, is this the
sed command being used with regular expression syntax?
If so what does the s do, I know that / means search
Andy