sh-utils
Some commands to simplify various things.
pm - move p to p’
cpm - copy p to p’
upm - undo p to p’
sw - swap two paths
pt - pivot file over a command
pts - pivot file over a command (stdin)
These commands simplify some common tasks in a shell.
For example, it’s often helpful to copy a file to a backup.
jason@io ~ cp foo foo\'
Instead, the cpm command is a bit more flexible and less to type.
jason@io ~ cpm foo
The pm commands, in general, can also be used en masse.
jason@io ~ cpm *
Another common pattern is running a command on a file and replacing it with the output, which pt supports.
jason@io ~ pt sort foo
The pts command is also similar to pt, but allows for some more complex combinations.
jason@io ~ pts sh -c "sort | awk '{ print \$1, \$2 * \$2 }'" foo
Any issues or bug reports, please use the github issue tracker. Pull requests and patches are also welcome.
Aliases
Some useful aliases to avoid prompts and change the default suffix.
alias pm="pm -f -s .old" alias cpm="cpm -f -s .old" alias upm="upm -f -s .old"
Installing
PyPI
pip install sh-utils
From source
python setup.py install
Versions
0.9 (Feb, 2016)
first release
Metadata
Release files for sh-utils 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sh-utils-0.9.tar.gz | 4.3 kB | Without provenance | Details |
Release files / sh-utils-0.9.tar.gz
| Download URL | sh-utils-0.9.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e35168267d6109f80de5be7444288fa06cc3b6ed416415f334f814a62e40ef2
|
|
BLAKE2b-256 checksum How to use checksums |
a6d1f9142c2e2c1ad69218f43e7432a425e5390f33caab1afa079677f4500c4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sh-utils 0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.