{"id":39845998,"url":"https://github.com/brunoseivam/retools","last_synced_at":"2026-01-18T13:36:10.894Z","repository":{"id":34723633,"uuid":"150280158","full_name":"brunoseivam/retools","owner":"brunoseivam","description":"EPICS Regular Expression tools for IOCs","archived":false,"fork":false,"pushed_at":"2024-09-11T21:02:13.000Z","size":51,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-12T07:23:15.744Z","etag":null,"topics":["epics","epics-ioc","regex"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brunoseivam.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":"2018-09-25T14:36:25.000Z","updated_at":"2024-09-11T21:02:17.000Z","dependencies_parsed_at":"2022-08-08T01:16:31.966Z","dependency_job_id":null,"html_url":"https://github.com/brunoseivam/retools","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/brunoseivam/retools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunoseivam%2Fretools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunoseivam%2Fretools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunoseivam%2Fretools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunoseivam%2Fretools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brunoseivam","download_url":"https://codeload.github.com/brunoseivam/retools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunoseivam%2Fretools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28536761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["epics","epics-ioc","regex"],"created_at":"2026-01-18T13:36:10.129Z","updated_at":"2026-01-18T13:36:10.890Z","avatar_url":"https://github.com/brunoseivam.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"retools\n=======\n\nretools is an EPICS module that contains a few useful EPICS shell commands\nthat use regular expressions. Uses C++11's regexp.\n\n#### `reGrep \"pattern\"`\n\nPrints record names that match the regular expression in `pattern`.\nExample:\n\n    epics\u003e dbl\n    ABC:X\n    ABC:Y\n    ABC:Z\n\n    epics\u003e reGrep \"X\"\n    ABC:X\n\n    epics\u003e reGrep \"[X|Y]\"\n    ABC:X\n    ABC:Y\n\n#### `reTest \"pattern\" \"value\"`\n\nTests a substitution of `pattern` with `value`, useful for testing before\nrunning `reAddAlias` or `reAddInfo`.\nExample:\n\n    epics\u003e dbl\n    ABC:X\n    ABC:Y\n    ABC:Z\n\n    epics\u003e reTest \"AB(.*):.*$\" \"$1\"\n    ABC:X C\n\n#### `reAddAlias \"pattern\" \"alias\"`\n\nAdds an alias to all records that match the regular expression in `pattern`.\nExample:\n\n    epics\u003e dbl\n    ABC:X\n    ABC:Y\n    ABC:Z\n\n    epics\u003e reAddAlias \"ABC:(.*)\" \"DEF:$1\"\n    Alias ABC:X -\u003e DEF:X created\n    Alias ABC:Y -\u003e DEF:Y created\n    Alias ABC:Z -\u003e DEF:Z created\n\n    epics\u003e dbla\n    DEF:X -\u003e ABC:X\n    DEF:Y -\u003e ABC:Y\n    DEF:Z -\u003e ABC:Z\n\n#### `reAddInfo \"pattern\" \"name\" \"value\"`\n\nAdds an info tag to all records that match the regular expression in `pattern`.\nMatching groups can be used for `value`. Example:\n\n    epics\u003e dbl\n    ABC:X\n    ABC:Y\n    ABC:Z\n\n    epics\u003e reAddInfo \"(.*):.*\" \"prefix\" \"$1\"\n    ABC:X: added info(prefix, 'ABC')\n    ABC:Y: added info(prefix, 'ABC')\n    ABC:Z: added info(prefix, 'ABC')\n\n    epics\u003e dbDumpRecord\n    record(ai,\"ABC:X\") {\n        field(DTYP,\"Soft Channel\")\n        info(\"prefix\",\"ABC\")\n    }\n    record(ai,\"ABC:Y\") {\n        field(DTYP,\"Soft Channel\")\n        info(\"prefix\",\"ABC\")\n    }\n    record(ai,\"ABC:Z\") {\n        field(DTYP,\"Soft Channel\")\n        info(\"prefix\",\"ABC\")\n    }\n\n#### `rePutField \"pattern\" \"field\" \"value\"`\n\nSets the value of a particular field to all records that match the regular expression in `pattern`.\nCan be used for the VAL field. Example:\n\n    epics\u003e dbl\n    ABC:X\n    ABC:Y\n    ABC:Z\n\n    epics\u003e rePutField \"(.*):.*\" \"EGU\" \"units\"\n    ABC:X: put field(EGU, 'units')\n    ABC:Y: put field(EGU, 'units')\n    ABC:Z: put field(EGU, 'units')\n\n    epics\u003e dbDumpRecord\n    record(ai,\"ABC:X\") {\n        field(DTYP,\"Soft Channel\")\n        field(EGU,\"units\")\n    }\n    record(ai,\"ABC:Y\") {\n        field(DTYP,\"Soft Channel\")\n        field(EGU,\"units\")\n    }\n    record(ai,\"ABC:Z\") {\n        field(DTYP,\"Soft Channel\")\n        field(EGU,\"units\")\n    }\n\n#### `reGetField \"pattern\" \"field\"`\n\nGets the value of a particular field to all records that match the regular expression in `pattern`.\nCan be used for the VAL field. Example:\n\n    epics\u003e dbl\n    ABC:X\n    ABC:Y\n    ABC:Z\n\n    epics\u003e reGetField \"(.*):.*\" \"EGU\"\n    ABC:X 'units'\n    ABC:Y 'units'\n    ABC:Z 'units'\n\n### Adjusting output verbosity\n\nBy default, retools has verbose output. To disable it, set the variable\n`reToolsVerbose` to `0`:\n\n    epics\u003e var reToolsVerbose 0\n    epics\u003e\n\nYou may also set `reToolsVerbose` to `2` so retools only displays the number of record matches found by each function. The option works as a bit mask, _e.g.,_ setting it to `3` would enable both the total number of matches and the default verbose output.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunoseivam%2Fretools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrunoseivam%2Fretools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunoseivam%2Fretools/lists"}