Hacker News new | past | comments | ask | show | jobs | submit login

printf "%x" 1195725856 will save you one bc process.





even better, thanks

  $ printf '%032x\n' 1213486160 542393671 | xxd -r -ps | xxd -g4 -c16
  00000000: 00000000 00000000 00000000 48545450  ............HTTP 
  00000010: 00000000 00000000 00000000 20544547  ............ TEG
  $



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: