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

浙公网安备 33010602011771号