Search Results

Search: Posts Made By: dony71
2,048
Posted By DGPickett
Use linefeed as row sep and 'while read' to...
Use linefeed as row sep and 'while read' to unpack:LIST='1 a A
2 b B
3 c B'

echo "$LIST"|while read l
do
echo "l=$l"
done

echo "$LIST"|while read x y z
do
echo "x=$x y=$y z=$z"...
2,048
Posted By Scrutinizer
Try: LIST="1 2 3" for i in $LIST; do echo...
Try:
LIST="1 2 3"
for i in $LIST; do
echo "example.$i "
done
2,048
Posted By Scrutinizer
I suspect you will have more problems than just...
I suspect you will have more problems than just the arrays. For example the sed uses GNU extensions, which are likely not supported by the (busybox?) version in your embedded environment, nor is the...
Showing results 1 to 3 of 3

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