- Debian / Ubuntu
- Make sure git is installed
sudo apt-get update
sudo apt-get install git
- Download the
rie-copy
repo with the following command,
git clone https://github.com/karpathyan/rie-copy.git
- Install the deb file using
dpkg
cd ./rie-copy/
sudo dpkg -i rie-copy.deb
Run the script using the following command:
rie-copy <source_file1> <source_file2> ... <destination_directory>
Replace <source_file1>
, <source_file2>
, etc., with the actual paths to the files you want to copy. The last argument should be the destination directory where the files will be copied.
The script will perform the following actions:
- Check the number of arguments provided. If fewer than two arguments are given, it will display a usage message and exit.
- Iterate through the source files and copy them to the destination directory.
- If a file with the same name already exists in the destination directory, the script will append a counter to the file name, incrementing it until an available file name is found.
rie-copy file1.txt file2.txt destination_folder/
This command will copy file1.txt
and file2.txt
to the destination_folder/
. If any file in the destination folder has the same name, the script will automatically rename the new file to avoid overwriting existing files.
This project is licensed under the GPL3.0-or-later.
Licence (SPDX-License-Identifier): GPL-3.0-or-later