Sponsored Content
Top Forums Shell Programming and Scripting Replacing a particular word with another word in all the xml's under a particular directory with sed Post 302894631 by Corona688 on Wednesday 26th of March 2014 12:35:37 PM
Old 03-26-2014
Show the input you have and the output you want. If you can guarantee CCC will not appear inside tag labels, etc, it's easy enough, but if it appears in tag names etc and you don't want it substituted there, it gets trickier.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Replacing of word

Hi all, I wanted to replace one word with another word pl help me to solve the same. example:- I wanted to replace RXOTX with RXOTRX in a perticuler file with hole. Regards, Ramesh (2 Replies)
Discussion started by: Ramesh Vellanki
2 Replies

2. UNIX for Dummies Questions & Answers

regular expression for replacing the fist word with a last word in line

I have a File with the below contents File1 I have no prior experience in unix. I have just started to work in unix. My experience in unix is 0. My Total It exp is 3 yrs. I need to replace the first word in each line with the last word for example unix have no prior experience in... (2 Replies)
Discussion started by: kri_swami
2 Replies

3. Shell Programming and Scripting

Replacing a word

Dear Friends, I am facing some problem with some hundred files. Hence to use these file I have to make a small change in each file. But its not possible to open each file and make changes manually. Hence I need guidance frm you to automate it. Example File name is "Queue_11.txt" reload sec=F... (6 Replies)
Discussion started by: anushree.a
6 Replies

4. Shell Programming and Scripting

sed - replacing on the right of a pattern and looking for exact word?

how would you get SED to do the following, say you have the following lines in a text file: user=tigger some text some text some text some text some text some text user=ted some text some text some text some text some text some text user=thekingofrockandroll you want to find any line... (15 Replies)
Discussion started by: rich@ardz
15 Replies

5. Shell Programming and Scripting

Find and replace a word in all the files (that contain the word) under a directory

Hi Everyone, I am looking for a simple way for replacing all the files under a directory that use the server "xsgd1234dap" with "xsdr3423pap". For Example: In the Directory, $pwd /home/nick $ grep -l "xsgd1234dap" *.sh | wc -l 119 I have "119" files that are still using... (5 Replies)
Discussion started by: filter
5 Replies

6. UNIX for Dummies Questions & Answers

How to print line starts with specific word and contains specific word using sed?

Hi, I have gone through may posts and dint find exact solution for my requirement. I have file which consists below data and same file have lot of other data. <MAPPING DESCRIPTION ='' ISVALID ='YES' NAME='m_TASK_UPDATE' OBJECTVERSION ='1'> <MAPPING DESCRIPTION ='' ISVALID ='NO'... (11 Replies)
Discussion started by: tmalik79
11 Replies

7. UNIX for Dummies Questions & Answers

Find EXACT word in files, just the word: no prefix, no suffix, no 'similar', just the word

I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL. I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies

8. Shell Programming and Scripting

Replacing first word while extracting

Hello All, I am extracting a part of file. the file looks as follows USING CHARACTER SET UTF8 DEFINE JOB ( DEFINE SCHEMA Flat_File_Schema ( cntnt_id VARCHAR(10) ); DEFINE OPERATOR o_mload TYPE update SCHEMA * ATTRIBUTES ( VARCHAR TdpId = @TdpId (5 Replies)
Discussion started by: nnani
5 Replies

9. UNIX for Beginners Questions & Answers

Getting error in sed command in replacing a word in all xmls

Hi Folks , I have to replace the following value in all the xml files so the value is tcp://pondevpms1.fm.rbsgrp.net:6033,pondevpms2.fm.rbsgrp.net:6033 and the value with it need to be replaces is shown below tcp://pondevpms1:3063 so i have fired the below command inside... (3 Replies)
Discussion started by: unclesamm
3 Replies

10. Shell Programming and Scripting

Replacing the first word if the word three match

Dear ALL, I have sample file : IDcentos-forum,bash,linuxCentOS,GNome IEfedora-milis,cli,linuxRedhat,KDE IRfreebsd-milis,aix,unixbsd,pyton required output: centos,bash,linuxCentOS,GNome fedora,cli,linuxRedhat,KDE freebsd,aix,unixbsd,pyton Can you help me pls.. (1 Reply)
Discussion started by: gnulyn
1 Replies
wvWare(1)						      General Commands Manual							 wvWare(1)

NAME
wvWare - convert msword documents SYNOPSIS
wvWare [-c charset] [--charset charset] [-p password] [--password password] [-x config.xml] [--config config.xml] [-d dir] [--dir dir] filename DESCRIPTION
wvWare converts word documents into other formats such as PS,PDF,HTML,LaTeX,DVI,ABW OPTIONS -c charset, --charset charset word 97 documents are stored in one of two formats, either in 8 bit windows codepages or in 16 bit unicode. The unicode can be con- verted easily into utf-8, and the codepages are promoted to unicode and converted from there, except for the western european code- page which is always converted to iso-5589-15 if possible. This is the default behaviour. While it is possible to convert into other formats or to force a conversion to a particular format, it is not recomended as you don't get a guarantee that the output will be correct. For instance, if you convert an english document into koi8-r encoding then it will be wrong, but if you are sure then you can override the default output format. The charsets that are available depend on your system: systems using the gnu libc 2 and above can convert to just about anything; systems that at, wv configure time, prove to be inadequate for charset conversion use wv's internal conversion formats which are a small subset of the possible conversions, namely: utf-8 iso-5589-15 koi8-r tis-620 -p password, --password password Due to heroic work done by a great team of workers, the wv library can decrypt password protected word 97 and older versions of word documents given the correct password. -d dir, --dir dir If dir is used then any created graphics will be placed in this directory. The default is the directory in which the word document resides. -x config.xml, --config config.xml Use this to give the location of the config file. If not used, the config file is searched for by first checking the current direc- tory, and then by looking in the install location (/usr/local/lib/wv/wvHtml.xml by default) MORE INFORMATION
http://wvware.sourceforge.net SEE ALSO
wvAbw(1), wvHtml(1), wvLatex(1), wvCleanLatex(1), wvPS(1), wvDVI(1), wvPDF(1), wvRTF(1), wvText(1), wvWml(1), wvMime(1), catdoc(1), word2x(1) AUTHOR
Dom Lachowicz (current author and maintainer) Caolan McNamara (original author) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com wvWare(1)
All times are GMT -4. The time now is 04:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy