Save time by generating timestamped and preformatted files for your meeting minutes, logs, etc. This command is designed to be simple to use and easily adaptable to your specific needs.
- Automatic File Generation: Create files with a name based on the current date and time in ISO format.
- Customizable Templates: Use preformatted templates to structure your documents, and create your owns.
- Time-saving: Automate file creation for your meetings, logs, or any other documentation needs.
You can customize the templates used by the script or create your own by adding them to the /usr/local/share/mkf/templates directory.
- Operating System: Linux (tested on Debian 12 and Kubuntu 24)
- Bash: Ensure that Bash is installed on your system (usually installed by default on most Unix/Linux distributions)
Here is the output of mkf -h, showing all available options:
Usage:
mkf [filename] [-cdeotT][-ihv]
Main operation mode:
-c, --content=content The content to write in this file
-d, --directory=directory The directory where the file will be generated
-e, --extension=extension Specify the desired extension (no extension by default)
-o, --open[=software] Automatically opens the file upon generation using default or specified software.
-t, --time Uses a datetime prefix instead of a date prefix.
-T, --template=template_name Initializes the file using the specified template
Information output:
-h, --help Display this help message and exit
-i, --info Provide info about this software: version, release date, author
-v, --version Print the command version
➜ mkf
created: 2024-09-15 in: /home/username/Desktop
➜ mkf -t
created: 2024-09-15_11-32-54 in: /home/username/Desktop
➜ mkf -e txt
created: 2024-09-15.txt in: /home/username/Desktop
➜ mkf -o vim
created: 2024-09-20 in: /home/username/Desktop
opening 2024-09-20 in vim
➜ mkf stats.log -d ~/logs -c "hello world!"
created: 2024-09-15_stats.log in: /home/username/logs
➜ cat ~/logs/2024-09-15_stats.log
hello world!
➜ mkf important-meeting.txt -T meeting
created: 2024-09-15_important-meeting.log in: /home/username/meetings
- Download or clone this repository:
git clone https://github.com/Julien-Fischer/cmd-mkf
- Execute the installer
cmd-mkf/src/install.sh
- Confirm
mkfis installed:
mkf -v
To remove mkf, run the uninstallation wizard.
/usr/local/bin/mkf-uninstall.sh
mkf is an open-source project; community contributions are welcome.
If you want to improve this script or add new features, feel free to open a pull request.
Please refer to Contributing to mkf for more details.
Apache 2.0. See License.