Monday, July 31, 2017

Jurus Jurus Linux

MOGRIFY RESIZE

mogrify -resize 30% *.jpg


MOGRIFY WATERMARK

convert -size 450x200 -background none -font Utopia-bold -fill white -gravity center caption:"cintamazda.blogspot.co.id" -shade 240x40 WATERMARK_FILE.png

mogrify -format jpg -draw 'gravity south image src-over 0,100 250,250 "WATERMARK_FILE.png"' ./timing/*.jpg


REMOVE NEWLINE :

$ tr -d '\012' < m.txt > ma.txt

REMOVE SPACE :

$ tr -d '\040' < ma.txt > mb.txt



key=$(cat keyin.txt) #key=2b7e151628aed2a6abf7158809cf4f3c printf $(echo '\x'${key:0:2}'\x'${key:2:2}'\x'${key:4:2}'\x'${key:6:2}'\x'${key:8:2}'\x'${key:10:2}'\x'${key:12:2}'\x'${key:14:2}'\x'${key:16:2}'\x'${key:18:2}'\x'${key:20:2}'\x'${key:22:2}'\x'${key:24:2}'\x'${key:26:2}'\x'${key:28:2}'\x'${key:30:2}) > /dev/ttyS7

No comments:

Post a Comment