{"id":20217652,"url":"https://github.com/pforret/shtext","last_synced_at":"2025-09-22T01:32:16.873Z","repository":{"id":144773457,"uuid":"475335460","full_name":"pforret/shtext","owner":"pforret","description":"Text manipulation in bash, by always using the fastest method","archived":false,"fork":false,"pushed_at":"2022-04-03T21:04:46.000Z","size":922,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-14T06:36:25.079Z","etag":null,"topics":["bash","bashew","string-manipulation","text"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/pforret.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-29T07:47:22.000Z","updated_at":"2024-09-09T22:44:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"945dbc9b-525a-4a58-bafb-ed50eb35224c","html_url":"https://github.com/pforret/shtext","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":"pforret/bashew","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fshtext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fshtext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fshtext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fshtext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pforret","download_url":"https://codeload.github.com/pforret/shtext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233815030,"owners_count":18734636,"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":["bash","bashew","string-manipulation","text"],"created_at":"2024-11-14T06:34:58.348Z","updated_at":"2025-09-22T01:32:11.512Z","avatar_url":"https://github.com/pforret.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Shellcheck CI](https://github.com/pforret/shtext/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/pforret/shtext/actions/workflows/shellcheck.yml)\n[![bash_unit CI](https://github.com/pforret/shtext/actions/workflows/bash_unit.yml/badge.svg)](https://github.com/pforret/shtext/actions/workflows/bash_unit.yml)\n![GH Language](https://img.shields.io/github/languages/top/pforret/shtext)\n![GH stars](https://img.shields.io/github/stars/pforret/shtext)\n![GH tag](https://img.shields.io/github/v/tag/pforret/shtext)\n![GH License](https://img.shields.io/github/license/pforret/shtext)\n[![basher install](https://img.shields.io/badge/basher-install-white?logo=gnu-bash\u0026style=flat)](https://basher.gitparade.com/package/)\n\n# shtext\n\n![pforret/shtext](assets/unsplash.editor.jpg)\n\nFast text manipulation in bash\n\n## 🔥 Usage\n\n```bash\nProgram: shtext 0.2.0 by peter@forret.com\nUpdated: Apr  3 21:48:10 2022\nDescription: perform fast text/string operations in bash\nUsage: shtext [-h] [-q] [-v] [-f] [-l \u003clog_dir\u003e] [-t \u003ctmp_dir\u003e] \u003caction\u003e\nFlags, options and parameters:\n    -h|--help        : [flag] show usage [default: off]\n    -q|--quiet       : [flag] no output [default: off]\n    -v|--verbose     : [flag] output more [default: off]\n    -f|--force       : [flag] do not ask for confirmation (always yes) [default: off]\n    -l|--log_dir \u003c?\u003e : [option] folder for log files   [default: /Users/pforret/log/shtext]\n    -t|--tmp_dir \u003c?\u003e : [option] folder for temp files  [default: /tmp/shtext]\n    \u003caction\u003e         : [choice] text action to perform  [options: alphanum,ascii,lower,slugify,trim,upper,env,check,update]\n                                                                                                             \n### TIPS \u0026 EXAMPLES\n* use shtext alphanum to remove non-alphanumeric chars and spaces\n* use shtext ascii to convert all accents/diacritics to ASCII alternative\n* use shtext lower to convert to lowercase\n* use shtext slugify to create a slug that can be used in a URL\n* use shtext trim to trim leading and trailing spaces\n* use shtext upper to convert to uppercase\n* --- the following are default bashew actions\n* use shtext check to check if this script is ready to execute and what values the options/flags are\n  shtext check\n* use shtext env to generate an example .env file\n  shtext env \u003e .env\n* use shtext update to update to the latest version\n  shtext check\n* \u003e\u003e\u003e bash script created with pforret/bashew\n```\n\n## ⚡️ Examples\n\n```bash\n\u003c $largefile.txt shtext lower\n\u003c\u003c\u003c \"Some Éxtra Text\" shtext upper\n```\n\n## 🚀 Installation\n\nwith [basher](https://github.com/basherpm/basher)\n\n\t$ basher install pforret/shtext\n\nor with `git`\n\n\t$ git clone https://github.com/pforret/shtext.git\n\t$ cd shtext\n\n## 📝 Acknowledgements\n\n* script created with [bashew](https://github.com/pforret/bashew)\n\n\u0026copy; 2022 Peter Forret\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpforret%2Fshtext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpforret%2Fshtext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpforret%2Fshtext/lists"}