User Tools

Site Tools


Bash and Linux tips

I put some tips and stuffs about bash and linux here.

Find all extensions in $folder :

find $folder -type f -name "*.*" | awk -F. '!a[$NF]++{print $NF}'

Autosuspend script for server :

Batch subtitle download :

To have fr and en subtitles :

for f in *.avi; do subdl --lang=fre "$f" ; done
for f in *.avi; do subdl --lang=eng,fre "$f" ; done

Pictures and videos encode script :

Keyboard layout in gdm

Edit Option “XkbLayout” in /etc/X11/xorg.conf.d/10-evdev.conf :

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"

        Option "XkbLayout" "fr"

blog/linux_tips.txt · Last modified: 2016/11/17 12:42 by popux