zoukankan      html  css  js  c++  java
  • shell用法

    字符串切割

    expr substr "test,sfc" 1 3

    字符串长度

    expr length "test,sfc"

    字符串中字符出现的位置

    awk -v a="test,sfc" -v b="sfc" 'BEGIN{print index(a,b)}'

    字符串截取方法:https://www.cnblogs.com/kings-9/p/7642628.html

    人生短,迷茫路一程又一程。 脚步重,雨雪天踟蹰也踟蹰。 滴水聚,久无成效伊人不见。 该如何,敲击敲击昼夜不停。
  • 相关阅读:
    扯一扯纯函数
    10.28
    10.27 动手动脑5
    10.26
    10.25 周总结
    10.23
    10.22
    10.21 动手动脑4
    10.20
    10.19
  • 原文地址:https://www.cnblogs.com/DesignerA/p/11691157.html
Copyright © 2011-2022 走看看