Search Results

Search: Posts Made By: RudiC
13,797
Posted By RudiC
Hmmm - I missed to post the necessary IFS...
Hmmm - I missed to post the necessary IFS modification. Try again with this slightly modified version:
IFS=$'\n'

for IN in $(echo "${!ENTRIES
}" | tr ',' '\n' | sort -un)
do [ !...
13,797
Posted By RudiC
It does, as you can see in my post. - What's...
It does, as you can see in my post.
- What's your result with the array shown in post #1?
- What exactly does your array look like (index / element)?
- What's yoour bash version?
Run the code...
13,797
Posted By RudiC
man hosts: Guessing ENTRIES is your...
man hosts:



Guessing ENTRIES is your array, how far would this get you:
for IN in $(sort -u <<< $(echo "${!ENTRIES
}" | tr ',' '\n'))
do [ ! "${IN/[A-Z]}" = "$IN" ] && break
...
13,797
Posted By RudiC
What bug? pls describe / explain. ...
What bug? pls describe / explain.


Array used for what?


The element count per leading number seems to vary?


The hosts file doesn't come from the array above?



What...
Showing results 1 to 4 of 4

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