You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
559 B

#!/bin/bash
rmclassesrecursively() {
rm -vf $(find . | grep -E '\.class$')
}
rmdotoanddotdrecursively() {
rm -v $(find . | grep -E '\.o$|\.d$')
}
function realpath() {
python3 -c 'import sys, os; print(os.path.realpath(sys.argv[1]))' $1
}
# Print filenames matching grep $1
function fmatch() {
grep -ri $1 * | perl -pe 's/\:.*?\n/\n/g' | sort -u
}
alias yt2mp3='yt-dlp -x --audio-quality 0 --audio-format mp3'
function heck_ts_to_mp4_replace() {
for i in $(find . | grep .ts$); do {
ffmpeg -i $i -c copy $i.mp4
mv $i /tmp
}; done
}