Quote:
This seems to dovetail nicely with your previous comment of "Im not looking to waste hours of time reading some technical data to get answer to my question." We WILL NOT write your script for you. Show effort of your own. |
That script was not helpfull alas.
|
Which script?
Did you look at the link I posted? |
Quote:
stringZ=abcABC123ABCabc echo ${stringZ//abc/xyz} But not sure how i can use it in my case. I already tried it, but it do not replace phrasse "$ip" by IP. I used something like: echo ${url//1.1.1.1/$ip} and echo ${url//$ip/1.1.1.1} but no change in variable |
Quote:
I have only one comment to this (see LQ rules) "That script was not helpfull alas." is not an acceptable answer. "your copy paste "solutions" that do not fits my case. That is why im asking for other people oppinion" is not an answer too. If you want to improve the quality of this communication (and obviously it is you who need a solution) you need to give some information about: what was wrong with that? Otherwise others will not be able to help you, because they (even me) have no idea how to give a better tip... |
pan64: i dont understand anything on one single script that was provided in this thread. Not sure how it can work in my case.
|
in that case ask how does this or that work, even line by line. Probably you will be able to modify it to fit your needs. But "repeating does not work" will not help
|
ok, then im asking for line by line explanation, if there is not any more simplistic way to achive what i want. i never thought it can be that difficult, wanted to learn some simple way.
|
Quote:
Sorry, the scripts provided WILL work, if you put any effort into them. If you actually posted something like "I modified the script in post #xxx, and gave it this input, but got this result, and I'm confused", you'd get help. Saying "it doesn't work" tells us nothing. And looking at the link michaelk gave you (after suggesting you look at it, they also had to look up a link for you), the sample script tells you exactly what you need to do...but you didn't do it. You're not following the syntax that's very clearly laid out in that document. And whether you like it or not, the FIRST REPLY (post #2), will work perfectly for you. It not only shows you how to read a file into an array, but how to process that array into variables (which is EXACTLY WHAT YOU WANT), then perform operations on that array...such as print them out, or do whatever you want with them. |
post reported & ignored, please be ontopic.
|
Quote:
Quote:
Code:
saveIFS="$IFS" IFS defines what separates the fields. In this case, a newline. Replace with whatever is your separator AGAIN...try reading the bash scripting tutorials. |
post not read and ignored as it do not provide any helpfull solution
|
what do you think, what will be really helpful - for you?
|
you do not know what is helpfull when you ask the question?
an answer that can help you solve the issue. prefferably example with comment on how that works. are you that stupid not to understand this. I hope i explained enough. And we can stop offtopic and time waste in this thread. If anyone of you do not wish to provide what i said, please be so kind and give me a favor to stay away from commenting in my topics and wasting everyones time. |
I'm afraid here, at LQ everyone is so stupid, they cannot understand you. Thanks for your valuable input.
|
All times are GMT -5. The time now is 07:47 PM. |