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?
One more strange thing, before I typed this command dos2unix I tried to show number of blocks with:
and it responded me with only one 1, now after it, it shows me 129 of this
Yes, now it's working correctly, so it seems that it was just wrong encoding?
And one more thing, because output seems, that it doesn't have free line (after last line of first block there is next one, there isn't empty line)
Anyway, big thanks, without You I won't get succes.
And also, for filtering second thing I have to put &&, but how about OR, I mean, can I do it something like this?
Weapon_Anim1=8
The problem was that Windows is using different characters as line breaks. When you transfer the file to Unix/Linux, the file still contain the characters from Windows (^M characters in the output), which are treated as normal characters by all the tools including AWK, so the line that was empty under Windows, now contain ^M character - ^M$ line in the last output. dos2unix is converting all those ^M characters to proper line breaks Unix/Linux tools are expecting.
I want the developers to get a mail with Java stack traces on a daily bases. When something is flaged as known issue and will get a fix but mean while this does not need to get sent each dayl. This is what I got so far. It's a bash script that runs some AWK in it.
To get the files that needs to... (6 Replies)
I have an awk parser, that works great if the data is NC_0000 (four digits), but if it is not that then the data is parsed. I'm not sure the most efficient way to obtain the desired output. Thank you :).
Code:
awk 'FNR > 1 && match($0, /NC_0000(*)\..*g\.(+)(.)>(.)/, a){ print a, a, a, a, a }'... (14 Replies)
I want to develop a simple command line parser so that then I can print the values of different options :tions.
-analyze
-filename<fileName>
Via man pages I got to know getopt command would be used.
Buut how to use it.. how to encrypt this in a perl script..
grateful if u could help (2 Replies)
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Hi!
I have a difficult problem, to step up a unknown version number in a text file, and save the file. It would be great to run script.sh and the version gets increased.
Example the content of the textfile.txt
hello
version = x
bye
This include three steps
1. First find the char after... (2 Replies)
I have thousands of files in HTML that looks like this:
....
....
....
<!-- table horaire --> <!-- table horaire -->
<table border="0" cellspacing="0" cellpadding="0" class="tblHoraires" summary="Table des horaires de la ligne 12">
<tr>
<th scope="row"... (13 Replies)
This is a fairly basic advanced question!
Does anyone happen to know what level of page faults should be acceptable on a fully operational production system?
Useful (?) information:
Production system using Oracle database
Compaq Tru64 UNIX Server (not sure what model, but it's big!)
8... (14 Replies)