{"id":19832221,"url":"https://github.com/uxcn/sh-utils","last_synced_at":"2025-06-15T11:38:20.923Z","repository":{"id":32968004,"uuid":"36585836","full_name":"uxcn/sh-utils","owner":"uxcn","description":"some commands to simplify various things","archived":false,"fork":false,"pushed_at":"2016-02-02T05:54:11.000Z","size":7,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-17T00:35:41.863Z","etag":null,"topics":["pypi","python","shell"],"latest_commit_sha":null,"homepage":"","language":"Python","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/uxcn.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-05-31T03:12:55.000Z","updated_at":"2020-06-06T11:44:21.000Z","dependencies_parsed_at":"2022-08-07T19:01:45.438Z","dependency_job_id":null,"html_url":"https://github.com/uxcn/sh-utils","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxcn%2Fsh-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxcn%2Fsh-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxcn%2Fsh-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxcn%2Fsh-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uxcn","download_url":"https://codeload.github.com/uxcn/sh-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251907085,"owners_count":21663214,"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":["pypi","python","shell"],"created_at":"2024-11-12T11:36:55.046Z","updated_at":"2025-05-01T16:33:06.196Z","avatar_url":"https://github.com/uxcn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sh-utils #\n\n[![build status](https://travis-ci.org/uxcn/sh-utils.svg?branch=master)](https://travis-ci.org/uxcn/sh-utils)\n[![python versions](https://img.shields.io/pypi/pyversions/sh-utils.svg)](https://pypi.python.org/pypi/sh-utils)\n[![license](https://img.shields.io/pypi/l/sh-utils.svg)](http://opensource.org/licenses/MIT)\n[![pypi downloads](https://img.shields.io/pypi/dm/sh-utils.svg)](https://pypi.python.org/pypi/sh-utils)\n[![issues](https://img.shields.io/github/issues/uxcn/sh-utils.svg)](https://github.com/uxcn/sh-utils/issues)\n\nSome commands to simplify various things.\n\n* pm - move p to p'\n* cpm - copy p to p'\n* upm - undo p to p'\n* sw - swap two paths\n* pt - pivot file over a command\n* pts - pivot file over a command (stdin)\n\nThese commands simplify some common tasks in a shell.\n\nFor example, it's often helpful to copy a file to a backup.\n\n    jason@io ~ cp foo foo\\'\n\nInstead, the `cpm` command is a bit more flexible and less to type.\n\n    jason@io ~ cpm foo\n\nThe `pm` commands, in general, can also be used en masse.\n\n    jason@io ~ cpm *\n\nAnother common pattern is running a command on a file and replacing it with the output,\nwhich `pt` supports.\n\n    jason@io ~ pt sort foo\n\nThe `pts` command is also similar to `pt`, but allows for some more complex\ncombinations.\n\n    jason@io ~ pts sh -c \"sort | awk '{ print \\$1, \\$2 * \\$2 }'\" foo\n\nAny issues or bug reports, please use the github issue\n[tracker](https://github.com/uxcn/sh-utils/issues).  Pull requests and patches\nare also welcome.\n\n## Aliases ##\n\nSome useful aliases to avoid prompts and change the default suffix.\n\n    alias pm=\"pm -f -s .old\"\n    alias cpm=\"cpm -f -s .old\"\n    alias upm=\"upm -f -s .old\"\n\n## Installing ##\n\n### PyPI ###\n\n    pip install sh-utils\n\n### From source ###\n\n    python setup.py install\n\n## Versions ##\n\n0.9 (Feb, 2016)\n\n* first release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuxcn%2Fsh-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuxcn%2Fsh-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuxcn%2Fsh-utils/lists"}