shell 分割字符串_shell循环分割一个字符串-CSDN博客

网站介绍:文章浏览阅读794次。#!/bin/bash#arr=( "a" "b" "**" "c")#for i in ${arr[@]}#do# echo "$i"#doneline="a b ** c"var1=`echo "$line"|awk -F ' ' '{print $3}'`echo "$var1"_shell循环分割一个字符串