Search Results

Search: Posts Made By: legolad
1,234
Posted By legolad
Cheers guys that worked a treat :)
Cheers guys that worked a treat :)
1,234
Posted By legolad
I have tried using this one sed -f sed_file...
I have tried using this one

sed -f sed_file Input_File
but it says it cannot be parsed

rdcwayx (https://www.unix.com/members/302014515.html) thanks but it has to be specific to these as there...
1,234
Posted By legolad
Lots of sed
Hi,

I have 200 lines of sed commands in a shellscript


sed s/TSTARTO2GPRSEVENTAPNACCSUM_1/TSTARTO2GPRSEVENTAPNACCSUM_24/g
sed s/O2GPRSEVENTAPNACCSUM_1/O2GPRSEVENTAPNACCSUM_24/g
sed...
1,028
Posted By legolad
your a genius great work thank you!
your a genius great work thank you!
1,028
Posted By legolad
Replacing lines which match certain criteria
Hi,

I have code which is like this

<TABLE name="UsageDetail_24>
<ROW>
<Date24><![CDATA[25 May 11]]></Date24>
<Time24><![CDATA[12:56:19]]></Time24>...
2,710
Posted By legolad
The problems I were having were that the at the...
The problems I were having were that the at the end of each line there was a ^M which I hadn't noticed until I opened the file by chance in vi editor. Have now solved my problems.
Thanks alot for...
2,710
Posted By legolad
that didn't work sorry its needs to do the exact...
that didn't work sorry its needs to do the exact same thing as before but now the file no long has line numbers on it

P.S I mean that the input file has no line numbers on it, not that I want them...
2,710
Posted By legolad
Many thanks for all your help! ----------...
Many thanks for all your help!

---------- Post updated at 03:12 PM ---------- Previous update was at 02:57 PM ----------

Could you let me know just one more thing, which part of that code...
2,710
Posted By legolad
I have just created a file with just that sample...
I have just created a file with just that sample in it and the output I got was correct like you said it
however, when I use it on the larger file it doesn't seem to work :s
the line numbers go...
2,710
Posted By legolad
Unfortunately that isn't working :( I tried...
Unfortunately that isn't working :(
I tried cutting out the line numbers and then doing it but it still doesn't remove anything from the script
2,710
Posted By legolad
want to remove 112 <TABLE name="something>...
want to remove

112 <TABLE name="something>
113 <ROW>
123 </ROW>
124 </TABLE>
125 <TABLE name="somethingelse>
126 <ROW>
129 </ROW>
130 </TABLE>


want to keep

493 <TABLE...
2,710
Posted By legolad
Sorry that didn't work I will try and be more...
Sorry that didn't work I will try and be more clearer.

the (ln number) bit is the line number no brackets. There are also bits in the text which has <TABLE name=...> but when it isn't followed 3...
2,710
Posted By legolad
Finding strings through multiple lines
Hi,
I need to search for a multiple line pattern and remove it

the pattern is search for

(ln number) <TABLE name=*>


and if 3 lines below that the line is

(ln number) </TABLE>

...
3,282
Posted By legolad
worked a dream, thanks a lot for your time
worked a dream, thanks a lot for your time
3,282
Posted By legolad
No the tag name word changes from line to line ...
No the tag name word changes from line to line

the code at the moment is

(line number) <word1><![CDATA[something]]></>
(line number) <word2><![CDATA[something]]></>
(line number) ...
3,282
Posted By legolad
Sorry it is this one (line number) ...
Sorry it is this one


(line number) <word1><![CDATA[something]]><word1/>
(line number) <word2><![CDATA[something]]><word2/>
(line number) <word3><![CDATA[something]]><word3/>

however...
3,282
Posted By legolad
just word1 as the last tag sorry my bad it was a...
just word1 as the last tag sorry my bad it was a type

I have edited now to make amends
3,282
Posted By legolad
shellscripting to edit xml file
I have an xml file where every line which has the word CDATA in it follows this pattern

(line number) <word1><![CDATA[something]]></>I need only these lines editing so that the end result is that...
1,859
Posted By legolad
Still not quite there :( I don't think ive...
Still not quite there :(

I don't think ive been incredibly clear thats my fault but the A B C etc are not actually that in the file I need the script to be able to work when these are different...
1,859
Posted By legolad
I'm having a little trouble, this is my fault as...
I'm having a little trouble, this is my fault as i got the code slightly wrong

line number <A="B/C/D"/><E="F" G="H"><![[I]]></

I forgot to mention the line number is in it which i need keeping...
1,859
Posted By legolad
One more question i promise :) I have this ...
One more question i promise :)

I have this

<A="B/C/D"/><E="F" G="H"><![I]]></

and i need to get rid of the last bit <![I]]></ and also move the / from the end of the first <> to the end of...
1,859
Posted By legolad
thanks alot the awk one worked a dream :) ...
thanks alot the awk one worked a dream :)

great work
:D
1,859
Posted By legolad
copying to the end of the line
Hi,
I have a file as such

1 <text1><text2></
2 <text3><text4></
3 <text5><text6></
4 <text7><text8></

I need is so the first bit of text in the line is at the end as its xml so

1 ...
858
Posted By legolad
Removing and copying in shellscript
Hi,
I need to edit an xml file as such
<B="A"><![C]]></B>

so that the output is

<A><![C]]></A>


This is a massive xml file and the A B and C are always different however the output...
1,021
Posted By legolad
Thanks alot for that it worked a treat :)
Thanks alot for that it worked a treat :)
Showing results 1 to 25 of 26

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