我正在尝试将awk匹配的模式的结果存储到shell数组变量。下面是一个简化的例子:# $2 below is the second set of characters which is a floating point number
awk-F 'string1_to_search' '{$array1[count1++] = $2}'
我试图将由awk匹配的模式的结果存储到shell数组变量中。下面是一个简化的示例:# $2 below is the second set of characters which is a floating point number
awk-F 'string1_to_search' '{$array1[count1++] = $2}'