https://github.com/tomkyle/cps
Creates a file copy with given suffix
https://github.com/tomkyle/cps
copy suffix
Last synced: 3 months ago
JSON representation
Creates a file copy with given suffix
- Host: GitHub
- URL: https://github.com/tomkyle/cps
- Owner: tomkyle
- Created: 2017-09-27T11:14:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-28T10:59:15.000Z (over 7 years ago)
- Last Synced: 2024-12-29T11:46:07.332Z (5 months ago)
- Topics: copy, suffix
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cps
**Create a file copy with given suffix**
## Installation
### MacOS · Homebrew
The *cps* bash script can be installed by a Homebrew formula, which itself is part of the [tomkyle/daily](https://github.com/tomkyle/homebrew-daily) tap. You may may want to install the tap first.
```bash
# Install tap first, formula second:
$ brew tap tomkyle/daily
$ brew install cps# Without tapping first:
$ brew install tomkyle/daily/cps
```### Linux
Just clone the repo and create a symlink in your local *~/bin* directory:
```bash
$ git clone [email protected]:tomkyle/cps.git cli-cps# Create sylink
$ cd ~/bin
$ ln -s /full/path/to/cli-cps/cps cps
```## Usage
Pass a **source file** and a filename **suffix** for the copied target.
```bash
$ cps foo.pdf -bar
$ lsfoo.pdf
foo-bar.pdf
```## What happens inside
After building the target file name, a simple copy command is used. Considering the usage example above:
`cp foo.pdf foo-bar.pdf`.## Issues
See [issues list.][i0]
[i0]: https://github.com/tomkyle/cps/issues