Search Results

Search: Posts Made By: jormung
8,603
Posted By jormung
Ok, working great, thank You so much again :)
Ok, working great, thank You so much again :)
8,603
Posted By jormung
Thanks for everything :) Last 2 questions, could...
Thanks for everything :) Last 2 questions, could You look on my post before and say if You are able to help with it?
8,603
Posted By jormung
One more strange thing, before I typed this...
One more strange thing, before I typed this command dos2unix I tried to show number of blocks with:

awk '{print NR}' RS= weapon.fopro

and it responded me with only one 1, now after it, it shows...
8,603
Posted By jormung
cat -eT weapon.fopro | head -50 [Proto]^M$ ...
cat -eT weapon.fopro | head -50
[Proto]^M$
ProtoId=4^M$
Type=3^M$
PicMap=art\items\knife.frm^M$
PicInv=art\inven\oknife.frm^M$
Flags=134217758^M$
DisableEgg=1^M$
Deteriorable=1^M$...
8,603
Posted By jormung
Same, it just print whole that file, because...
Same, it just print whole that file, because there is even Weapon_DmgType_0=7
Strange, that it worked with example file ([something]). Did it done normally for you? Or not too?
8,603
Posted By jormung
awk '/Weapon_DmgType_0=1/' RS= weapon.fopro |...
awk '/Weapon_DmgType_0=1/' RS= weapon.fopro | grep Weapon_DmgType_0=2
Weapon_DmgType_0=2
Weapon_DmgType_0=2
Weapon_DmgType_0=2
Weapon_DmgType_0=2
Weapon_DmgType_0=2
Weapon_DmgType_0=2...
8,603
Posted By jormung
Yes, first I put: awk '/Weapon_DmgType_0=1/'...
Yes, first I put:
awk '/Weapon_DmgType_0=1/' RS= weapon.fopro > testek.txt

Then I should export everything to next file by it:
awk '/Weapon_Anim1=8/' RS= testek.txt >testek2.txt

But it seems,...
8,603
Posted By jormung
Yes, sure. Here is full file (packed, because...
Yes, sure. Here is full file (packed, because uploading service could touch file structure or something)

http://pl.rghost.net/14959231
8,603
Posted By jormung
Only by empty line, it's strange. It doesn't work...
Only by empty line, it's strange. It doesn't work even with michaelrozar17 way.
8,603
Posted By jormung
Yes, it's working exactly how I wanted, even I...
Yes, it's working exactly how I wanted, even I didn't dream, that it could be that short code.
Thank You so much.

Or maybe not, damn, with longer things (not like with my example) it just copy...
8,603
Posted By jormung
Thanks, about this RS="" I even tried...
Thanks, about this RS="" I even tried RS="\n[something]", which is wrong as I think, but I don't really have idea how to write this.
Now I made, that I'm getting this specify line or whole lines,...
8,603
Posted By jormung
Help with awk (making simple/advanced ini parser)
Hello

I'm searching some kind of example (or ready-made solution, but I don't really want it, because I want to learn awk more), to make something like a parser in awk for something like this (I...
Showing results 1 to 12 of 12

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