{"id":16317683,"url":"https://github.com/zfletch/plog","last_synced_at":"2025-05-13T16:33:00.768Z","repository":{"id":30986477,"uuid":"34544790","full_name":"zfletch/plog","owner":"zfletch","description":"PLog","archived":false,"fork":false,"pushed_at":"2015-04-24T22:24:51.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T20:20:58.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zfletch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-24T22:20:49.000Z","updated_at":"2015-04-24T22:24:52.000Z","dependencies_parsed_at":"2022-08-26T15:21:32.333Z","dependency_job_id":null,"html_url":"https://github.com/zfletch/plog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfletch%2Fplog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfletch%2Fplog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfletch%2Fplog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfletch%2Fplog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zfletch","download_url":"https://codeload.github.com/zfletch/plog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253981903,"owners_count":21994352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T22:09:01.311Z","updated_at":"2025-05-13T16:33:00.737Z","avatar_url":"https://github.com/zfletch.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PLog\n\nSearches the given input and prints out everything between lines matching\n`START` and `END` (or any other two strings specified by the user).\nSimilar to line-range operators in Awk and Sed (`,`) or Perl (`..`).\n\n## How to use\n\n```\nusage: plog [-h] [-s START] [-e END] [file ...]\n```\n\n## Examples\n\n```bash\n$ cat log\nstarting process\n...\nconnecting to server\nSTART\n[debug] hello\nconnected to server\nEND\n...\nending process\n$\n$ ./plog.pl log\nSTART\n[debug] hello\nconnected to server\nEND\n$\n$ cat log | ./plog.pl\nSTART\n[debug] hello\nconnected to server\nEND\n```\n\n```bash\n$ cat another_log\nchecking build environment\n...\nbegin compilation of foo.c\nwarning unused variable\nfinished compilation of foo.c\n...\nbegin compilation of bar.c\nfinished compilation of bar.c\n...\nbegin cleanup\nfinished\n$\n$ ./plog.pl -s 'begin compilation' -e 'finished compilation' another_log\nbegin compilation of foo.c\nwarning unused variable 'var'\nfinished compilation of foo.c\nbegin compilation of bar.c\nfinished compilation of bar.c\n```\n\n```bash\n$ # running a Ruby on Rails application and a page is slower than it should be\n$ # wrap the controller action in `puts \"START\"` and `puts \"END\"; STDOUT.flush`\n$\n$ bundle exec rails server | ./plog\n[2015-04-24 18:09:50] INFO  WEBrick 1.3.1\n[2015-04-24 18:09:50] INFO  ruby 2.0.0 (2014-09-19)\n[2015-04-24 18:09:50] INFO  WEBrick::HTTPServer#start: pid=53822 port=3000\nSTART\n   (0.1ms)  SELECT COUNT(*) FROM \"users\"\n   (0.1ms)  SELECT COUNT(*) FROM \"users\"\n   (0.1ms)  SELECT COUNT(*) FROM \"users\"\nEND\n```\n\n## How to run test(s)\n\n```bash\n$ cd ./test\n$ perl test.pl\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzfletch%2Fplog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzfletch%2Fplog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzfletch%2Fplog/lists"}