Команды SFK


    1        2        3        4        5        6        7        8        9        10    

Раздел 3. Conversion - Преобразование
bin-to-src | chars | crlf-to-lf | csvtotab | dec | decode | detab | encode | entab | hex | hexdump | hextobin | join | lf-to-crlf | oload | scantab | split | tabtocsv | utoa | uuencode | wtoa | wtou |

Help:   Рус   |   Eng        Refer:   Рус   |   Eng  

Команда: dec
sfk hex value1 [value2] [...]
sfk dec value1 [value2] [...]
sfk ... +dec [+hex] -digits=n

   convert numbers between decimal and hexadecimal.
   largest convertable number is ((2 << 64) - 1).

   options
      -digits=n  format output numbers with n digits

   web reference
      http://stahlworks.com/sfk-dec

   examples
      sfk hex 1048576 98765 234567
         convert 3 decimal numbers.

      sfk filt csv.txt -ssep "\t" -form "$col3" +hex
         convert 3rd column from csv.txt to hex.