Search Results

Search: Posts Made By: MotAah
4,586
Posted By Corona688
An easy way to generate a string of "thing1...
An easy way to generate a string of "thing1 thing2 thing3 ..." from an array using any separator you want is:

OLDIFS="$IFS"
IFS="|" # adjust to whatever you want
LIST="${ARR }"
IFS="${OLDIFS}"...
4,586
Posted By yazu
No way - there are no two-way communications...
No way - there are no two-way communications between syntax constructions of shell and awk (like you want).
You can use a scalar variable with embeded newlines. Send its value to awk through -v...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy