Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: 4dirk1
13,326
Posted By 4dirk1
Sir this one also worked! Thanks a lot! would u...
Sir this one also worked! Thanks a lot! would u mind explaining your code sir? :rolleyes:
13,326
Posted By 4dirk1
sir ctsgnb i tried your code and it gave me this...
sir ctsgnb i tried your code and it gave me this error message:



what could be wrong??
13,326
Posted By 4dirk1
OK sir I'll give it a shot. BTW 'kw01' is not a...
OK sir I'll give it a shot. BTW 'kw01' is not a txt file. its mainly a keyword in the xml file in which i set. will it be still fine if i use your command sir Mark?

---------- Post updated at...
13,326
Posted By 4dirk1
Hi sir i tried nawk, it seemed to work, but it...
Hi sir i tried nawk, it seemed to work, but it was not the output i was expecting. this xml file opens up as a spreadsheet when sent out to windows environment. Now I placed keywords like 'kw01' on...
13,326
Posted By 4dirk1
sir i tried the code above. It gave me this...
sir i tried the code above. It gave me this error:


bash-2.05$ awk '/kw01/{system("cat file.txt");next}1' template.xml > test.xml
awk: syntax error near line 1
awk: bailing out near line 1
...
13,326
Posted By 4dirk1
replace a string with contents of a txt file containing multiple lines of strings
Hello everyone,

ive been trying to replace a string "kw01" in an xml file with the contents of a txt file having multiple lines. im a unix newbie and all the sed combinations i tried resulted to...
22,065
Posted By 4dirk1
Hi Sir! I have a similar scenario. I have an...
Hi Sir!

I have a similar scenario. I have an xml file which I compiled in unix and i send it out as an attachment which opens with excel. Now there are certain keywords (kw01)in the xml file which...
2,188
Posted By 4dirk1
Yes sir it has multiple string. So that must be...
Yes sir it has multiple string. So that must be causing it to be garbled. Is there anyway to replace the keyword with the contents of fatal_alerts.txt?? Please help. :(

fatal_alerts.txt contents:...
2,188
Posted By 4dirk1
---------- Post updated at 04:53 PM ----------...
---------- Post updated at 04:53 PM ---------- Previous update was at 04:52 PM ----------



sir i tried this but resulted to an error:

sed s/kw01/`cat fatal_alerts.txt`/ template.xml >...
2,188
Posted By 4dirk1
wow! that was quick. thanks a bunch palanisvr! ...
wow! that was quick. thanks a bunch palanisvr!

follow up question: how about if i wanted to replace multiple keywords?

example: <test>keyword1</test>
<test>keyword2</test>
...
2,188
Posted By 4dirk1
How can i use sed to replace a keyword in an xml file?
Hello Unix gurus!

I'm a unix newbie. Can I use sed to replace a keyword in an xml file and convert this keyword with an output of a unix cat command?

for example: <test>keyword</test>
and...
4,519
Posted By 4dirk1
so using "EOF" will do the trick?
so using "EOF" will do the trick?
4,519
Posted By 4dirk1
im trying to issue this command - use...
im trying to issue this command - use Excel::Writer::XLSX; an error message appears saying: "ksh: use: not found"

sorry for the noob questions
4,519
Posted By 4dirk1
yeah i'm trying, but it wont work. is there any...
yeah i'm trying, but it wont work. is there any startup code or whatsoever that i should do before i can start running perl commands? i specifically want to try Excel::Writer::XLSX for my script....
4,519
Posted By 4dirk1
perl inside shell script?
Hi UNIX Pros!

Newbie here, I would like to ask if it is possible to use perl commands inside a shell script? i created a simple script which connects to oracle and run queries which the script...
3,895
Posted By 4dirk1
Merge two cells in excel via UNIX?
Hi UNIX Gods!

Is it possible to merge two cells in .csv file using unix commands?
Imagine that this is my present csv file opened via excel:
Gate Reports| |
fatal alerts | 200 ...
7,000
Posted By 4dirk1
ok will try that now. THANKS! ----------...
ok will try that now. THANKS!

---------- Post updated at 06:17 PM ---------- Previous update was at 06:11 PM ----------

wow that worked FINE! THANK YOU SO MUCH BARTUS AND ROHON!
7,000
Posted By 4dirk1
Need help! command working ok when executed in command line, but fails when run inside a script!
Hi everyone,

when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's...
2,416
Posted By 4dirk1
how to update a .csv file?
Hi everyone,

im a newbie so plz bare with me, i have this txt file which contains an output of a query from oracle. now i copied the string inside this txt file in a .csv file. i used this...
Showing results 1 to 19 of 19

 

Featured Tech Videos

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