On 07/02/2026 14:26, Jérémy Bézairie wrote:
Hi
2 arguments (as cp & mv): source (file(s), folder(s)) & directory
0≤N
Copy-paste/move source to directory
By N folder:
If source has the same name with directory/content (file(s), folder(s)),
copy-paste/move to directory/0 to create if exists not
If source has the same name with directory/N/content, copy-paste/move to
directory/N+1 to create if exists not
By rename to source|N :
If source has the same name with directory/content, rename source to
source|0
If source has the same name with directory/content|N , rename source to
source|N+1
With the help of gemini.google.com , I successfully created the standalone
/usr/bin/cpn (By N folder), written in C++ :
https://drive.google.com/drive/folders/1SVs6loNGNA7cpIfIWbf_0e1iTywDrJae ,
install (as usual):
cd /a_path/cdn
makepkg -si
Why not these 2 features in cp & mv ?
I'm finding it hard to understand the above.
How does this relate to cp/mv --backup=numbered
thanks,
Padraig