Search Results

Search: Posts Made By: raidzero
9,692
Posted By raidzero
I have it wrapped in a function to take the array...
I have it wrapped in a function to take the array name as an argument, and the function is run as many times as the number of names. it takes several input files, one for string-arrays, one for...
9,692
Posted By raidzero
Yes I did, it produced the same output as the...
Yes I did, it produced the same output as the first nawk suggestion.

With each array and its elements on one line it might make this easier. Is there a way to delete lines based on the comparison...
9,692
Posted By raidzero
This command is nice, it works very well to put...
This command is nice, it works very well to put all items between <array> and </array> on its own line - making it easier for processing. however, it does not remove duplicate definitions.
9,692
Posted By raidzero
<string-array name="stringArray1"> ...
<string-array name="stringArray1">
<item>Element1|Element2<item>
<item>@android:color/black<item>
</string-array>
<style name="style1" parent="@android:style/mainStyle"></style>
<style...
9,692
Posted By raidzero
Thanks everyone. The XML file contains...
Thanks everyone.

The XML file contains arrays, some of them are empty. they look like this


<array name="array1"></array>

some also look like this

<style name="style1"...
9,692
Posted By raidzero
Thanks again, corona! However, it is doing this ...
Thanks again, corona! However, it is doing this

<string-array name="emptyarray</string-array>">

to this

<string-array name="emptyarray"></string-array>


and this

<string-array...
9,692
Posted By raidzero
[uniq + awk?] How to remove duplicate blocks of lines in files?
Hello again, I am wanting to remove all duplicate blocks of XML code in a file. This is an example:

input:

<string-array name="threeItems">
<item>item1</item>
<item>item2</item>...
6,798
Posted By raidzero
huh. You're right. It just didnt work on a file...
huh. You're right. It just didnt work on a file with strings, colors, and a bunch of other xml stuff in it. I made a separate xml just for colors and ran that through it and it works :)
6,798
Posted By raidzero
I apologize for not being clear... this is what...
I apologize for not being clear... this is what is desired:

<color name="color1">#ff00aabb</color>
<color name="color2">#ff000000</color>
<color name="color1">#ffbbaa00</color>

I'd like to...
6,798
Posted By raidzero
the sed command took care of awk interpreting...
the sed command took care of awk interpreting newline instructions, I have been trying to modify your awk script but just failing. Could you show how to add some logic to ignore items with # in their...
6,798
Posted By raidzero
The string lengths can vary a lot. Actually it...
The string lengths can vary a lot. Actually it causes issues with long strings, it creates new lines in the file, which doesn't fly.

---------- Post updated at 05:02 PM ---------- Previous update...
6,798
Posted By raidzero
duplicate lines are not always consecutive, and...
duplicate lines are not always consecutive, and the item names can vary :wall:


string1 may be defined at line 18, and then string1 might be defined again at like 818...

---------- Post...
6,798
Posted By raidzero
Delete lines in file containing duplicate strings, keeping longer strings
The question is not as simple as the title... I have a file, it looks like this


<string name="string1">RZ-LED</string>
<string name="string2">2.0</string>
<string name="string2">Version...
9,447
Posted By raidzero
I always thought make was just a shortcut of...
I always thought make was just a shortcut of sorts to run the compiler you set in the CC variable with all of its build time switches/flags set by configure. (That may be incorrect, that is just how...
9,447
Posted By raidzero
Thanks for the reply. I am using gcc, I am not...
Thanks for the reply. I am using gcc, I am not sure what makefile I am using, whichever the default one is that the configure script produces? I am not that familiar with the logistics of compiling...
9,447
Posted By raidzero
Wow. I guess this is as odd as I thought.. Nobody...
Wow. I guess this is as odd as I thought.. Nobody has even a guess?
9,447
Posted By raidzero
OK thanks. I did not realize, I just bookmarked...
OK thanks. I did not realize, I just bookmarked it and have been checking on it.
9,447
Posted By raidzero
Bump? Anyone? I thought this would be a really...
Bump? Anyone? I thought this would be a really simple solution, I am not all that familiar with compiling from source but have compiled a lot of software and never have I seen this... Thanks!
9,447
Posted By raidzero
Compiling Samba from Source on AIX, Active Directory, LDAP, Kerberos
Hello, I asked this question in the AIX subforum but never received an answer, probably because the AIX forum is not that heavily trafficked. Anyway, here it is..

I have never had any issues like...
Forum: AIX 01-11-2010
5,631
Posted By raidzero
Hmmm, nobody has any idea? Maybe I should have...
Hmmm, nobody has any idea? Maybe I should have asked in another section, looks like the AIX section is pretty unvisited..
Forum: AIX 01-08-2010
5,631
Posted By raidzero
Thanks for the reply. I did try make all. It...
Thanks for the reply.
I did try make all. It does the same thing. I need to compile from source because I have installed kerberos and openldap and am wanting to authenticate to AIX from Windows AD....
Forum: AIX 01-08-2010
5,631
Posted By raidzero
Compiling samba from source in AIX 5.3
Hello all. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs with no issues, but when the time comes to make, this...
Forum: Programming 01-21-2009
13,473
Posted By raidzero
It will be used on AIX 5.3.
It will be used on AIX 5.3.
Forum: Programming 01-21-2009
13,473
Posted By raidzero
wow! than you so much that's awesome
wow! than you so much that's awesome
Forum: Programming 01-21-2009
13,473
Posted By raidzero
Thanks for the reply. I understand that, it's...
Thanks for the reply. I understand that, it's just that tcpkill will terminate all connections, and that is certainly not what I want to do. I would like to kill any sockets using a specific port.
Showing results 1 to 25 of 82

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