unicode2sms
来自「GSM猫管理程序」· 代码 · 共 37 行
TXT
37 行
#!/bin/bash# This script converts a pure unicode text file into an sms file for sending.if [ $# -ne 1 ]; then echo "Usage: unicode2sms filename" exit 1fiif grep ".A.l.p.h.a.b.e.t.:.*U.C.S" $1 >/dev/null; then ucs2=trueelse ucs2=falsefitext=`od -t x1 $1 | cut -c8-99`foundstart="false"position="first"for character in $text; do if [ "$position" = "first" ]; then if [ "$foundstart" = "true" ]; then echo -en "\x$character" fi position="second" else if [ "$character" != "ff" ]; then echo -en "\x$character" fi if [ "$foundstart" = "false" ] && [ "$character" = "0a" ] && [ "$previous" = "0a" ]; then foundstart="true" fi previous="$character" position="first" fi done
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?