blob: d0475f30d9ad4a7464ad46a161b3e045dc171bf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
==== fileutil ====
Fileutil is a program which is a utility for files written in C. It combines the functionality of cat cp and mv.
It allows you to copy or move the contents of a given file to stdout or to a another file.
You can also choose whether or not to overwrite the destination file if it exists.
Please note that all paths given to this program must be absolute, UNIX style file paths.
(i.e. start with '/' or '~')
COMPILATION:
This program can be easily compiled using the make command. Simply run the command:
make
in the main directory and the executable fileutil will be created. You need to have GNU Make on your system to compile in this way.
SYNOPSIS:
fileutil
fileutil SOURCE
fileutil SOURCE [OPTIONS] -d DEST
PARAMETERS:
SOURCE The absolute path to the source file to be moved or copied.
If one isn't provided, then it is set to "logfile.txt" by default.
DEST The path to the destination directory of the copy/move operation.
If one isn't provided, it prints to stdout (i.e. the terminal output) instead.
OPTIONS:
OPTION ARGUMENT(S) DESCRIPTION
-d DEST Specifies the path (DEST) of the output directory
-M Move the file from its destination rather than copying it
-F Allows the program to overwrite a file if it already exists (must be used with -d)
|