Search Results

Search: Posts Made By: kkkoehne
131,059
Posted By kkkoehne
Preventing whitespace to be a delimiter in a for loop (bash/sh)
Hi,

I have a for loop which iterates over a list of strings, separated by whitespace:

$ list="1 2 3"
$ for i in $list; do echo $i; done
1
2
3

I now want to introduce some strings...
Showing results 1 to 1 of 1

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