随笔分类 -  Shell

摘要:一:举例test.sh的脚本内容如下#!/bin/bashmy_fun() { echo "$#"}echo 'the number of parameter in "$@" is '$(my_fun "$@")echo 'the number of parameter in "$*" is '$( 阅读全文
posted @ 2019-12-19 14:12 拿破轮先生 阅读(106) 评论(0) 推荐(0)
摘要:一、split 初始化和类型强制 awk的内建函数split允许你把一个字符串分隔为单词并存储在数组中。你可以自己定义域分隔符或者使用现在FS(域分隔符)的值。 格式: split (string, array, field separator) split (string, array) 如果第三 阅读全文
posted @ 2019-12-19 13:51 拿破轮先生 阅读(2986) 评论(0) 推荐(0)