Skip to content

tomkyle/cps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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 tap. You may may want to install the tap first.

# 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:

$ git clone git@github.com: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.

$ cps foo.pdf -bar
$ ls

foo.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.

About

Creates a file copy with given suffix

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages