Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 16. október 2026

Rozdiely pre scripts/shell/sms/sity.sk/sms.sh medzi verziami 1.26 a 1.27

verzia 1.26, 2002/06/25 17:08:19 verzia 1.27, 2002/06/26 10:52:53
Riadok 24  TMP_FILE=`tempfile -p sms. -s .html \
Riadok 24  TMP_FILE=`tempfile -p sms. -s .html \
   
 if [ $# -lt 1 ]; then  if [ $# -lt 1 ]; then
         echo -e "Usage:\n       $0 <number-or-alias>\n";          echo -e "Usage:\n       $0 <number-or-alias>\n";
         echo "Message is taken from standart input. Use special characters with care.";          echo -n "Message is taken from standart input."
           echo " Use special characters with care.";
         echo "Spaces are handled properly.";          echo "Spaces are handled properly.";
         exit 1;          exit 1;
 fi  fi
Riadok 113  fi
Riadok 114  fi
 echo 'Enter your message (max 420 chars, end with CTRL-D):';  echo 'Enter your message (max 420 chars, end with CTRL-D):';
 text=`cat` # text from stdin, multiple lines  text=`cat` # text from stdin, multiple lines
 text="`echo \"$text\" \  text="`echo \"$text\" \
         | awk 'BEGIN { ORS="+"} \          | awk 'BEGIN { ORS="+" } \
         { gsub(/%/, "%25"); \          {   gsub(/%/,  "%25"); \
                 gsub(/\+/, "%2B"); \                  gsub(/\+/, "%2B"); \
                 gsub(/ /, "+"); \                  gsub(/ /,  "+"); \
                 gsub(/\&/, "%26"); \                  gsub(/\&/, "%26"); \
                 print; }'`"                  print; }'`"
 # }}}  # }}}

Legend:
Odstranené z verzie1.26  
zmenené riadky
  Pridané vo verzii1.27

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok