The script then does a binary search to the first occurrence of --start... and prints lines until it reaches --end. I'd like to make this a bit more user friendly. Mainly by not making the use enter a regex as --end. And instead taking a datetime Oct 10 05:59:59 and automatically creating a regex from it.. Is it possible to do this?script.pl --start ’Oct 10 05:50:’ --end ’Oct 10 05:5[0-2]:’
In reply to dynamic regex by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |