echo b1c2d3d1e8f9 | awk '
{
     string=$0
     len=length(string)
     for(i=0; i<=len; i++) 
     {
          tmp=substr(string,i,1)
          if(tmp ~ /[1-9]/) 
          { 
              str=tmp
              str1=(str1 str)
         }
     }
     print str1
}'            

  命令行直接贴入以上代码。

相关文章:

  • 2021-10-13
  • 2021-12-22
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-12-10
相关资源
相似解决方案