⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unicode2sms

📁 GSM猫管理程序
💻
字号:
#!/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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -