Search Results

Search: Posts Made By: guddu_12
3,645
Posted By guddu_12
Hello RudiC This has worked thanks
Hello RudiC

This has worked

thanks
3,645
Posted By guddu_12
Hi, I tried running the command with...
Hi,

I tried running the command with space and without space and still getting same error
sed: illegal option -- E


sed -E 's/< *from *>([^<]*)<\/ *from *>/<from_msg>\1<\/from_msg>/g'...
3,645
Posted By guddu_12
Hi I omitted the option and ran the below...
Hi

I omitted the option and ran the below command


sed 's/< *from *>([^<]*)<\/ *from *>/<from_msg>\1<\/from_msg>/g' message.xml>output.xml


and the command is coming out with...
3,645
Posted By guddu_12
Hi Not working sed -E's/<...
Hi

Not working


sed -E's/< *from *>([^<]*)<\/ *from *>/<from_msg>\1<\/from_msg>/g' message.xml>output.xml
sed: illegal option -- E


Please use CODE tags as required by forum...
3,645
Posted By guddu_12
Hi All, Can any body help me with the...
Hi All,

Can any body help me with the below error

sed -r 's/< *from *>([^<]*)<\/ *from *>/<from_msg>\1<\/from_msg>/g' message.xml>output.xml
output

sed: illegal option -- r


...
3,645
Posted By guddu_12
Hi I am checking for space just because typo...
Hi

I am checking for space just because typo ,so that job would not fail

Any suggestions
3,645
Posted By guddu_12
Find replace text in xml file on the fly
Dear Unix guru,

I have a .XML file which is being used to load data to oracle. This file comes on unix box and one of the tag in xml is oracle key word. I want to find that tag and replace with...
3,404
Posted By guddu_12
tdc2solv112:kumarra# uname -a SunOS tdc2solv112...
tdc2solv112:kumarra# uname -a
SunOS tdc2solv112 5.10 Generic_150400-23 sun4v sparc sun4v
3,404
Posted By guddu_12
Hi I ran below command iconv -futf16...
Hi I ran
below command


iconv -futf16 -tutf8 ED_D_VLU______002_005_002_000_EN.oti > ED_D_VLU2.txt


cat ED_D_VLU2.txt

output

...
3,404
Posted By guddu_12
IT is original file, it will come like this only....
IT is original file, it will come like this only.
so i want to read every line and past in some other .txt file before processing
3,404
Posted By guddu_12
0000000 074 000 120 000 122 000 117 000 112 000...
0000000 074 000 120 000 122 000 117 000 112 000 105 000 103 000 124 000
< \0 P \0 R \0 O \0 J \0 E \0 C \0 T \0
0000020 076 000 015 000 012 000 042 000 126 000 114...
3,404
Posted By guddu_12
tdc2solv112:kumarra# file...
tdc2solv112:kumarra# file ED_D_VLU______002_005_002_000_EN.oti
ED_D_VLU______002_005_002_000_EN.oti: commands text
3,404
Posted By guddu_12
I said that we receive *.OTN extension file
I said that we receive *.OTN extension file
3,404
Posted By guddu_12
Hi I ran below command ...
Hi

I ran below command


tdc2solv112:kumarra# file -i ED_D_VLU______002_005_002_000_EN.oti
ED_D_VLU______002_005_002_000_EN.oti: regular file
3,404
Posted By guddu_12
Is there any way to get what encoding is been used
Is there any way to get what encoding is been used
3,404
Posted By guddu_12
Oracle can open the file but shows null data in...
Oracle can open the file but shows null data in all the rows but when taking the length of the column then it shows there is indeed some data which looks like non printable data.

some magic...
3,404
Posted By guddu_12
It has comes to us with *.OTN extension, i opened...
It has comes to us with *.OTN extension, i opened the file in notepad and copied to another text file
3,404
Posted By guddu_12
Hello Rudic I am not sure what is the...
Hello Rudic

I am not sure what is the problem with the file and i just guessed that it might have hexa decimal char. when processing the file it shows no data in oracle but when i copy the full...
3,404
Posted By guddu_12
Copy content of file in different file
Dear all,

I get a file which is probably in hexadecimal character which i have to load in oracle. oracle is unable to process the original file but when i copy the content into notepad it works...
1,547
Posted By guddu_12
Hi Working fine your solution, there was a...
Hi

Working fine your solution, there was a probelm in the file it had hexadecimal character so was not working
1,547
Posted By guddu_12
Hi I ran the below command awk...
Hi

I ran the below command

awk '/^</{a=$0";";print $0; next} {print a $0}' ED_D_SSL______004_006_001_000_EN.oti>ED_D_VLU.txt

the output it shows as

vi ED_D_VLU.txt
"ED_D_VLU.txt" 10990...
1,547
Posted By guddu_12
Hi Thanks for help, it work as expected ...
Hi

Thanks for help, it work as expected

---------- Post updated at 09:40 AM ---------- Previous update was at 08:19 AM ----------

Hi

When working with original file it just print ;

it...
1,547
Posted By guddu_12
Hello Greet_sed, Your command is running...
Hello Greet_sed,

Your command is running fine and excellent, I am not good with unix and was trying to modify it.

You have put ',' after <pcl> i want to put comma after every comment


<PCL>...
1,547
Posted By guddu_12
Hi I tryied running but it is coming out...
Hi

I tryied running but it is coming out with an error

tdc2solv112:kumarra# awk -F";" '/^<.*>$/ {PRFX = $1 ","; print; next} {sub (/^/, PRFX)}1' OFS=";" ED_D_VLU______002_005_002_000_EN.oti...
1,547
Posted By guddu_12
Adding a comment in a file next to data
Dear Gurus,

I have a file which comes every day with set of data, as a part of processing i want to add a comment at the start of every line.

e.g of file

<PCL>
2E;"HCA";"COP Car...
Showing results 1 to 25 of 98

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