Thanks this is much shorter than the way I did it in vba, but can you explain me this line?
if (!done[name])
I searched for "done" but couldn't find anything suitable.
Hey well "exit" didn't work for me in the way I wanted to use it, but anyway I had to load the .txt file into an excel worksheet where I now just deleted the double/tribble... entries with a VBA Makro
regards
Hey is it actually possible to set a limit?
What I mean is that after the line with "VariantName" it can appear that there is more than one "Name" that has the status "bringUp", but I only need the first Name with the status "bringUp". Can I somehow stop it after one Name with bringUp has been...
Hey again ;)
Now i have another problem:
I still search for lines with "Status="bringUp"" but now, if a line has been found I want to get into the line above and write the VariantName + the Name into a file
<Service VariantName="A_Name" Version="7.5" ......>
<Aps Name="INTY1O7K0200"...
<Aps Name="ZZ1V7A851601" Status="bringUp" Type="delta" ForcedOnline="no"/> -> bringUp.txt
Name="ZZ1V7A851601" -> New.txt
and that's what Neu.txt should look like:
ZZ1V7A851601
I didn't know how to specify the parameters for each command and i hoped that might work
Hi and thank you ;)
2) works fine now but
1) I tried some stuff now but it still doesn't work:
BEGIN { ORS="\r\n" }
{if ($2=="Status=\"bringUp\"") print $4 > "New.txt"; #
else if ($3=="Status=\"bringUp\"") print $2 > "New.txt";#This part works
else if($4=="Status=\"bringUp\"") print $3 >...
Now I've got a second problem.
If I open the the file "Neu.txt" in Windows the word-wraps
don't exist there are only these small quads.
Is there a way I can fix this?
Hi I wrote some lines in awk and now I wanted to write them into a file, but there always occur some errors.
Hope someone can help me.
awk '/bringUp/' V03_autsfce12_26-07-05.xml > bringUp.txt
awk '{if ($2=="Status=\"bringUp\"") print $4 > "New.txt";
else if ($3=="Status=\"bringUp\"") print $2...
.....following data:
field1^Vfield2^V^field3^Vfield4
I need to take the data from test1 and output it into test2 but where i can specify the order that the fields come out.
I have tried to cut the fields using the following command
grep "f" test1 | cut f 4,3,2,1 -d"^V" >>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.