Search Results

Search: Posts Made By: 2by4
2,505
Posted By 2by4
Don, Sorry about that :) I'm working...
Don,

Sorry about that :)

I'm working with a multi column tab separated csv file. All columns are small except one, that one includes all the notes and is an html encoded script. The max length...
2,505
Posted By 2by4
$ which sed; uname -a /bin/sed Linux ubuntu...
$ which sed; uname -a
/bin/sed
Linux ubuntu 3.5.0-34-generic #55~precise1-Ubuntu SMP Fri Jun 7 16:25:50 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

sed --version
GNU sed version 4.2.1

----------...
2,505
Posted By 2by4
Hmm, I can't get latest regex to trigger at all...
Hmm, I can't get latest regex to trigger at all on my data :confused:

$ sed '/^<[Ii][Mm][Gg]/sXsrc="[!"]*[\\/]Xsrc="https://www.unix.com/images/Xg' input > output
$ diff input output
$

tried...
2,505
Posted By 2by4
Thanks Don, but even in your output I don't see...
Thanks Don, but even in your output I don't see it correctly :(

<IMG src="https://www.unix.com/images/\SERVER\DATA\Image\1948_4703925.jpg">
It misses multiple paths... argh... I thought we were...
2,505
Posted By 2by4
Don, it almost worked, however there are...
Don,

it almost worked, however there are some paths like this that actually got completely removed:


<IMG src="/2531_4703925.jpg"><BR><IMG src="/2531_7990660.jpg"><BR></P>
After running sed...
2,505
Posted By 2by4
Replacing text in between the string
Here is just a few variations that follow the same principle. We need to update the path to all images (only images)


<IMG src="/3251_8832613.jpg">
<IMG...
Showing results 1 to 6 of 6

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