Search Results

Search: Posts Made By: Tonka52
6,931
Posted By Tonka52
Thanks guys! Worked a charm.
Thanks guys! Worked a charm.
6,931
Posted By Tonka52
Concatenating lines and formatting.
Hi,

I have a html file which is unformatted and need to concatenate the lines between each "table" statement in order to run an awk statement on it. Here is the example of the raw file:

...
1,400
Posted By Tonka52
ahhh...got it! grep ress# test.dat | awk '{...
ahhh...got it!

grep ress# test.dat | awk '{ FS="#" } { print $2 }' | sed 's/"/:/g' | awk '{ FS=":"} { print $1 $3}'
1,400
Posted By Tonka52
Complext test extraction
Hi All,

Got a bit of a complex grep/awk statement here.

Trying to write a statement which finds the following text in an unstructured HTML file: eg

original file snip:

<form...
84,928
Posted By Tonka52
Yeah, thought of that but my curiosity got me...
Yeah, thought of that but my curiosity got me wondering if there's a single expression I can use.

Thanks anyway!
84,928
Posted By Tonka52
Google, I can't rely on fixed width fields,...
Google,

I can't rely on fixed width fields, as the length changes. I was hoping for a command something like :awk ' {FS = "[:, -]+" } { print $1 $2 $3 $4 $5}' Of course, this syntax is...
84,928
Posted By Tonka52
Google, The line is exactly as printed. ...
Google,

The line is exactly as printed.

So :YO6-2000-30.htm: (3 properties found).......needs to become $1 $2 $3 $4 $5
YO6 2000 30 htm (3 properties found)I understand that $5...
84,928
Posted By Tonka52
Awk Multiple Field Separators
Hi Guys,

I'm tying to split a line similar to this:YO6-2000-30.htm: (3 properties found).......into separate columns, so effectively I need to check...
10,720
Posted By Tonka52
What I was trying to say is that I need to...
What I was trying to say is that I need to exclude those img src occurences which already have an alt="(some text) as they are are not all empty.

eg

<img src=BLANK IMG> = do add an alt=""...
10,720
Posted By Tonka52
Perderabo - that statement is very helpful ! ...
Perderabo - that statement is very helpful ! Just need to exclude any line already containing alt"<any text>" ...

Can you help on this?
10,720
Posted By Tonka52
Thanks RTM, I saw that posting but that's just a...
Thanks RTM, I saw that posting but that's just a straightforward find/replace statement - I need something that uses a fair bit of logic!

If a super-human sed statement can do it then great! ...
10,720
Posted By Tonka52
Replace text in multiple files
Ok guys,

If anyone could help me out on this puppy I'd be very appreciative!

Here's the scenario

I have a string for example :
<img src=BLANK_IMG border=0 width=221 height=12>
or
<img...
29,598
Posted By Tonka52
Thanks
That example should be fine!

Thanks Mate :)
29,598
Posted By Tonka52
Perl - Emailing MULTIPLE files as attachment
Hi Guys,

I would love an example as to how I can send multiple files in one email using perl. The file types are .csv

I have read that mimencode is required? Is there any other way or is...
Showing results 1 to 14 of 14

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