Search Results

Search: Posts Made By: crcbad
6,833
Posted By crcbad
Many thanks, you've provided me a great help. ...
Many thanks, you've provided me a great help.

Next question I have, I will search for it first.

Again, many thanks for the tips.
6,833
Posted By crcbad
vgersh99, Im new in the unix world. So now...
vgersh99,

Im new in the unix world. So now I understand what you told me before.

So, the variables I set within awk, can't be used in shell later?

I mean, I created an array named "b"...
6,833
Posted By crcbad
vgersh99, I tried that before, but when I...
vgersh99,

I tried that before, but when I write echo ${b[1]} then I get a blank.

Why this happen?

Franklin52,

I'll be more careful from now on. Sorry.
6,833
Posted By crcbad
Still working in it, but dont get to save the...
Still working in it, but dont get to save the values :(
6,833
Posted By crcbad
Store values in an Array
Hi all.

Well, I have the next code:



I need to make an array with the values I have in the bucle, but just don't get it...

Question is, how can I store in an array that values, and how...
1,536
Posted By crcbad
vgersh99, Thanks for the code. It works...
vgersh99,

Thanks for the code. It works prefectly.

jim mcnamara, vgersh99, thanks again. I've learned a lot today with your tips & codes.
1,536
Posted By crcbad
Just curiosity.... Is there any way to do...
Just curiosity....

Is there any way to do this without calling awk?

I tried something like:

((i=0))
while [[ $a = *:* ]] ; do
....
((i=i+1))
done

But I'm still a newbie...
1,536
Posted By crcbad
Jim, Thanks for your quick reply. The...
Jim,

Thanks for your quick reply.

The code you wrote, works fine, this is exactly what I wanted.

Just a note. where you put print $1, must be print $i

Thanks again :)
1,536
Posted By crcbad
Extract all the ocurrences in a String
Hi.

I'll do my best to write correctly ( I'm from Spain ).

I have to create a sh to read from a flat file. Each field is delimited by ":", so each line could be like this:
...
Showing results 1 to 9 of 9

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