Skip to content

a-p-jo/filecopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 15, 2023
4ab3b99 · Jan 15, 2023

History

77 Commits
Feb 14, 2021
Sep 15, 2021
Jun 16, 2022
Jun 16, 2022
Jun 16, 2022
Jan 15, 2023

Repository files navigation

Utility Usage

  1. Compile all .c files in the repo. For example, on *nix systems , you might run :
git clone https://github.com/a-p-jo/filecopy.git
cc filecopy/*.c -o fcp -Ofast -flto # Compile to exe named "fcp"
rm -r filecopy # Repo no longer needed, delete it
  1. Get the help menu :
$ ./fcp
fcp v1.0
Usage : filecopy <src> [dst (optional, stdout by default)] [overwrite dst? (y/n) (optional)]

Copies the contents of src to dst (if given, else to stdout).
If dst does not exist, creates it. If it pre-exists, if 'y' is specified, continues.
If 'n' is specified, aborts. Else, asks for permission before overwriting.

Example : fcp archlinux.iso /dev/sda y

Packages

No packages published

Languages