标签:class style The test pre awk span 输出 color
#!/bin/bash a="The cat sat on the mat" test="cat" awk -v a="$a" -v b="$test" ‘BEGIN{print index(a,b)}‘
输出
bogon:Desktop macname$ ./test.sh 5
参考:
标签:class style The test pre awk span 输出 color
原文地址:https://www.cnblogs.com/sea-stream/p/11403014.html