Utility bash scripts to do automatable tasks with a single command. We have scripts to download youtube videos, download music from youtube, convert media files, etc.
Contribute and add your secret script.
Download scripts download to ~/Downloads/
folder. For videos, they download to ~/Downloads/Videos
and for audio, they download to ~/Downloads/Music
.
For best results, clone this git repo to a fixed location on your computer and add it to $PATH
.
cd ~
git clone https://github.com/aviaryan/utility-bash-scripts.git utility-scripts
cd utility-scripts
export PATH="$(pwd):$PATH"
Script: extract
Dependencies: tar, gzip, p7zip, bzip2
Extracting .dmg files works only on MacOS.
extract <path to archive>
Script: youtube-video
Dependencies: youtube-dl, ffmpeg, aria2c (optional)
youtube-video "https://www.youtube.com/watch?v=HgfojLtSBTM"
Script: vamerge
Dependencies: ffmpeg
vamerge <path to video file> <path to audio file>
# the order is important, first video, then audio
Script: youtube-music
Dependencies: youtube-dl, ffmpeg, aria2c (optional)
Default download format is ogg
(vorbis), pass second parameter as mp3
, wav
, m4a
to use another format.
youtube-music "https://www.youtube.com/watch?v=HgfojLtSBTM"
youtube-music "https://www.youtube.com/watch?v=HgfojLtSBTM" mp3
Script: toogg
Dependencies: ffmpeg
toogg <path to file>
Script: uglify
Dependencies: Uglify-JS
uglify <input JS file> <output file>
Script: tomp3
Dependencies: ffmpeg
tomp3 <path to file>
Script: soundcloud-music
Dependencies: Soundscrape
soundcloud-music <link to soundcloud>
Script: dckill
dckill
Script: empty-trash
empty-trash
Script: maczip
maczip <path to folder>
Script: delete-ss
delete-ss