Search Results

Search: Posts Made By: bedtime
10,774
Posted By bedtime
I hadn't seen this post, else I'd have responded...
I hadn't seen this post, else I'd have responded sooner...

I'm not sure how to set a timer within the awk program to just time the replacing time itself, so the results will be based on the...
10,774
Posted By bedtime
Was not intentional. Just a thing of habit. ...
Was not intentional. Just a thing of habit.


Yes, I have to be more clear. I got it working though. It was a silly mistake of not watching the correct text that I was replacing; it was actually...
10,774
Posted By bedtime
Works perfectly! awk -v vkeyIn="$keyIn" -v...
Works perfectly!
awk -v vkeyIn="$keyIn" -v vkeyOut="$keyOut" -v vdefTagIn="$defTagIn" -v vdefTagOut="$defTagOut" -v tagIn="$tagIn" -v tagOut="$tagOut" -v vkeySepA="$keySepA" -v vkeySepB="$keySepB"...
10,774
Posted By bedtime
I've been wanting to merge the two awks into one,...
I've been wanting to merge the two awks into one, but have not been successful. This code does not make the program run as intended. It just gives a splash of ongoing text from the xml file.

The...
10,774
Posted By bedtime
Issue fixed. With one line of code: ...
Issue fixed. With one line of code:

gsub(vdefTagIn "[^" vdefTagOut "]*" vdefTagOut, vdefSep)

where the tags were defined as '<sense' and '>'. No more need for 2079 loops of madness.

...
10,774
Posted By bedtime
Yes, I will try to ensure all new code is trimmed...
Yes, I will try to ensure all new code is trimmed down. For now, I don't want to mess with the other braces.


Yes, I know no other working alternative. :confused:


How eloquent that is! This...
10,774
Posted By bedtime
Removed duplicate / edited paragraphs ...
Removed duplicate / edited paragraphs


This was the code needed to make it work! Thank you!

The big issue was that it must match perfectly or it would mess up the printout by going past its...
10,774
Posted By bedtime
Make awk gsub take value of for loop
I am running Debian, mksh shell and #!/bin/mksh script.

Here is one instance I am trying to match. There are other level and n values, but they must be gathered in numerical order or the program...
Showing results 1 to 8 of 8

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