meta

what's the meta about say it ditto dot net?

User Tools

Site Tools


terminal:miscbash

This is an old revision of the document!


misc bash terminal stuff

aliases and stuff

number files from start

i=29 # add 1 to last number in batch
for f in *.png; do
   dest=$(printf "%02d" $i).png
   mv "$f" "$dest"
   i=$((i + 1))
done

source

push to all git remotes

i'm lazy ok

alias gitall="git remote | xargs -L1 git push --all"

youtube to MP3

what the comment says

# lazy ass way for me to get my idol mp3s from youtube
# usage: ytmp3 url
alias ytmp3="yt-dlp -f ba -x --audio-format mp3"

move nested files to top-level dir

(this will overwrite files with same names so rename with filebot beforehand if needed)

i use this for counting icons usually, hence the alias name

alias iconsubfol="find . -mindepth 2 -type f -print -exec mv {} . \;"

fake-time with makeMKV

makeMKV is currently broken, in that it has no working free license key right now, so the only way to get it in a functional state is to use an old key and trick the program into thinking the time is different. i use faketime for this:

# makemkv workaround
# see link
# https://old.reddit.com/r/makemkv/comments/1mek9fa/beta_registration_key/
alias makemkv="faketime '2025-06-01 12:00:00' makemkv"
terminal/miscbash.1755311411.txt.gz ยท Last modified: by melo