Collection of bash scripts
Make the scripts executable with
chmod +x script-name.sh
Place the scripts in the /usr/bin directory. Alternatively, you can place them in a custom directory and then include it in the PATH variable.
export PATH=$PATH:path/to/your/script.sh
For scripts for the Nemo file manager, place in ~/.local/share/nemo/scripts For actions for the Nemo file manager, place in ~/.local/share/nemo/actions
- pick – Picks a random argument. Allows for weighted randomization.
- swap-names – Swaps the names of two selected files.
- group-by-date – Groups selected files by date, moving them into directories based on their year and month of creation.
- copy-path – Copies path to selected file to clipboard.
- copy-full-path – Copies path to selected file to clipboard.
- extract-subtitles – Extracts all subtitle tracks of the selected video files. Works only on video formats.
- copy-length-to-clipboard – Copies the total length of all selected videos to the cipboard. Works only on video formats.