/FP

this utility is used to find/copy files related to specific predicat, passed as CL argument.

Primary LanguageC++

FP

C++ 17

This utility is used to find/copy files related to specific predicat, passed as CL argument.
Also you can exlude all thing you don't need in WhatToInclude.h
Let's see, how to do that:

//some code
#define COPY 1
#define FIND 1
//some code

If you don't need Copy module or Find module you should set 0 value.
Yes, if there is no module, programm won't do anything, but you will see message
and so you can understand copy of programm is just "empty" executable file.

The main idea

It doesn't follow the Unix-philosophy in classic way, but it modifies it!
Programm is combination of independent modules, which can be included in different versions
and every module has only one goal and reason to exist.

How to use

There is global Arguments:
F and C
Each global argument relates to specific module

And so there is standart arguments, contained withing brackets
fp F[ -p=* -t=e:/books] - example of Find module.
-p is predicat, * means anything.
-t is top directory to search.

fp C[ -p=*.txt -w=e:/books -f=txt_books] - example of Copy module.
-w is folder, where to copy files
-f is folder, where should be stored copies
Also there is optional argument -c
Remove files from -w after they are copied to -f

Common argument:
-r process operation recursivly.