Search Results

Search: Posts Made By: euval
1,192
Posted By euval
parse xm entry with awk/sed
Hi folks,

I have XML files with the following sections (section occurs once per file) in them:

<AuthorList CompleteYN="Y">
<Author ValidYN="Y">
...
1,445
Posted By euval
parsing a list with awk
Hi folks,

I have a list of XML files with entries like this one:

<Item Name="Author" Type="String">Stark F</Item>
<Item Name="Author" Type="String">Pfannstiel J</Item>
<Item Name="Author"...
1,919
Posted By euval
that does exactly what I need - many thanks...
that does exactly what I need - many thanks indeed!
1,919
Posted By euval
looping in awk
How do I remove last comma?

echo "xx yy zz" | awk 'BEGIN{FS=" "}{for (i=1; i<=NF; i++) printf "%s,", $i}'output:

xx,yy,zz,
required output:

xx,yy,zz
or (ideally!):

xx, yy & zz
many...
6,833
Posted By euval
sidorenko - "Do you want to output exactly the...
sidorenko - "Do you want to output exactly the substring matched by your regexp?"

Yes - that is exactly what I need. Any ideas?
6,833
Posted By euval
Thanks for replying. Yes that works, but my issue...
Thanks for replying. Yes that works, but my issue is a bit a deeper - the regular expression in awk will be supplied from a variable within a script, so it may be "Biochemistry" or "Biochemistry and...
6,833
Posted By euval
match string exactly with awk/sed
Hi all,

I have a list that I would like to parse with awk/sed. The list is contains entries such as:

JournalTitle: Biochemistry
JournalTitle: Biochemistry and cell biology = Biochimie et...
2,347
Posted By euval
Franklin52, Works great! Thanks a lot...
Franklin52,

Works great! Thanks a lot (again).
2,347
Posted By euval
nope, that outputs 0.202432 0.198432 ...
nope, that outputs

0.202432 0.198432
0.206432
2,347
Posted By euval
0.198432
0.198432
2,347
Posted By euval
thank you! ---------- Post updated at...
thank you!



---------- Post updated at 01:10 PM ---------- Previous update was at 12:44 PM ----------




What about if a value on the previous line is wanted in output as well? Thanks in...
2,347
Posted By euval
Strings to integers in an arithmetic loop
Hi all,

Could someone please advise what is the correct syntax for my little script to process a table of values?

The table is as follows:
0.002432 20.827656
0.006432 23.120364
0.010432 ...
6,519
Posted By euval
Ah, yes, I forgot about "END"! Thanks!
Ah, yes, I forgot about "END"! Thanks!
6,519
Posted By euval
awk to print on the same line
Hi all,

I've a script that uses awk to parse the output of wget during a database update. The code I use is:

wget -c ftp://ftpsite/file 2>&1 | awk '/0%/ {print}'But this spits out each progress...
2,098
Posted By euval
Great stuff! Thanks a lot.
Great stuff! Thanks a lot.
2,098
Posted By euval
Help with regex construction
I am trying to construct a regular expression that will filter a log file containing the following table:

aP [1,P1]
mP [3,P2] [4,P2(1)]
mC,mI [5,C2]
oP [16,P222]...
2,606
Posted By euval
Why cannot have multiple pipes from tee?
why I cannot do this?
prog_name | tee logfile | awk /regexp/ | awk /regexp/ I now this is not elegant code, but am intrigued as to why multiple pipes from tee not allowed.
1,543
Posted By euval
tough-looking little script! thanks!
tough-looking little script! thanks!
1,543
Posted By euval
print running field average for a set of lines
Hi everyone,

I have a program that generates logs that contains sections like this:

IMAGE INPUT
81 0 0.995 2449470 0 1726 368 1 0.0635 0.3291
82 0 1.001 ...
4,875
Posted By euval
Thanks danmero! ---------- Post updated at...
Thanks danmero!

---------- Post updated at 12:25 PM ---------- Previous update was at 11:43 AM ----------

So, I've almost got my little script running, but seem stuck again at printing out...
4,875
Posted By euval
iterate through list of numbers and print specific lines with awk
Could someone please point me in the right direction with the following?

I have a program that generates logs that contains sections like this:

IMAGE INPUT
81 0 0.995 2449470 0 ...
Showing results 1 to 21 of 21

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