https://github.com/vaeth/cpi
A POSIX shell wrapper for "cp -i -a", making use of "diff".
https://github.com/vaeth/cpi
copy-files diff posix recursive shell wrapper
Last synced: about 1 year ago
JSON representation
A POSIX shell wrapper for "cp -i -a", making use of "diff".
- Host: GitHub
- URL: https://github.com/vaeth/cpi
- Owner: vaeth
- Created: 2012-02-03T15:35:17.000Z (over 14 years ago)
- Default Branch: main
- Last Pushed: 2021-06-13T11:06:33.000Z (almost 5 years ago)
- Last Synced: 2025-01-31T17:08:40.689Z (over 1 year ago)
- Topics: copy-files, diff, posix, recursive, shell, wrapper
- Language: Shell
- Homepage: http://www.mathematik.uni-wuerzburg.de/~vaeth/download/index.html#cpi
- Size: 29.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `cpi` and `mvi`
(C) Martin Väth (martin at mvath.de).
This project is under the BSD license 2.0 (“3-clause BSD license”).
SPDX-License-Identifier: BSD-3-Clause
A POSIX shell wrapper for `cp -i -a` and `mv -i`, making use of `diff`
This is a somewhat verbose frontend for `cp -i -a` and `mv -i`:
For each file you see the differences before you confirm/reject
the copying/moving.
You get more detailed instructions by calling
- `cpi -h`
- `mvi -h`
### Requirements
The cpi variant requires that your `cp` command supports the non-POSIX options
- `-a`
- `-d`
- `--preserve=timestamps`
### Installation
For installation. just copy the content of `bin/` into your `$PATH`.
To obtain support for __zsh completion__, copy the content of `zsh/` to your
zsh's `$fpath`.
For Gentoo, there is an ebuild in the mv overlay (available over layman).