UN*X Note

just some geek's notes. Placed here in case, I forgot or someone else didn't know...

Rename all files in a directory

named " S13E01-SeriesXY.avi" or " s13e01_blah.mp4"  to 13x01-SeriesXY.mp4

for a in $(ls .); do
  B=$(echo $a|sed s/[sS]13[eE]/13x/g)
  mv $a $B
done
for a in $(ls .); do
  B=$(echo $a|sed s/[sS]13[eE]/13x/g)
  mv $a $B
done

HTTP-Error Codes

(RFC 2616)

link

Add GPG-Key to local Debian keyring (for apt-key)

$ apt-get install NICE_PACKAGE

>>ERROR! Danger! Danger! Missing key 0xKEYID! We're doomed!!

$ gpg --recv-key  0xKEYID
$ gpg -a --export 0xKEYID|apt-key --add -

OK