ascii-bs.awk

来自「Reference Implementation of G.711 standa」· AWK 代码 · 共 19 行

AWK
19
字号
#!/bin/awk# --------------------------------------------------------# AWK script to produce an ASCII printout of a "bogus"# G.192-compliant encoded frame. It will take frame # sizes from the command line and print the sync header, # frame length, and softbits, alternating 1's and 0's.## NOTE: the ascii output can be converted to bynary using # the unsupported demo program ascii2bin.c## Simao -- February 2001# --------------------------------------------------------{  print "0x6B21"  printf("0x%00x\n", $1)  for (i=0;i<$1;i++)     print i%2? "0x007F":"0x0081"}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?