02-23-2010
thanks for the posts - just to remind you that the html block contains a lot of html, tables, lines, etc. so all suggestions deleting "after tr" or deleting just a table are not productive
And the table I want to delete slightly alters now and then. Now I don't mind changing the table input here and there, but unescaping all characters, lines etc, is a bit too complicated if you have to do it thirty times. Thats why I asked about an input file....
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Ok guys,
If anyone could help me out on this puppy I'd be very appreciative!
Here's the scenario
I have a string for example :
<img src=BLANK_IMG border=0 width=221 height=12>
or
<img src=IMG border=0 height=12 width=221 >
or anything else really....
need to basically change each... (10 Replies)
Discussion started by: Tonka52
10 Replies
2. Shell Programming and Scripting
Dear all
My task is to replace a strings in multiple files.
filename: file1
I can use sed to replace abc.server.com to unix.server.org
e.g. sed 's/abc.server.com/unix.server.org/g file1 > newfile1
I have 2 questions. How do I
directly save file1 instead of append to newfile1. I... (1 Reply)
Discussion started by: on9west
1 Replies
3. UNIX for Dummies Questions & Answers
I need to replace a piece of text in many files, recursively, in a way that doesn't duplicate the files. How would I do that?
The closest I've come is
grep -rl "text" * | sed -e 's/home1/home2/g'
but that just replaces the filename. (2 Replies)
Discussion started by: dhinge
2 Replies
4. Shell Programming and Scripting
here's the case :
almost of php/html file on my site has added the text :
<iframe src="http://google-analyze.cn/count.php?o=1" width=0 height=0 style="hidden" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>I don't know how this happen, so i want to remove above text from all... (16 Replies)
Discussion started by: dzufauzan
16 Replies
5. Shell Programming and Scripting
I would perfer to use cut and paste to do this but I can't find a GUI to do this with. What I want to do is to find a multiple line block of code like
Exit Sub
Log_Handler:
then replace it with
GoTo RSLogRtn
Exit Sub
Log_Handler:
Basically it is just an insert, but I may want to... (8 Replies)
Discussion started by: Randem
8 Replies
6. Shell Programming and Scripting
Hello,
file1:
not to be changed
not to be changed
<start>
old stuff
old stuff
old stuff
<end>
not to be changed
not to be changed
file2:
new text
new text
desired output: (3 Replies)
Discussion started by: ripat
3 Replies
7. Shell Programming and Scripting
I have a list of files with different file names and ext that i need replace(saved as file_list.txt.) i just want to replace from a specific file list. i obtain an error saying lint not found. Plz help. Thx
perl -e "s/$NAME/$T_NAME/gi;" -pi $(find . -type f | xargs -0 lint -e < file_list.txt) (0 Replies)
Discussion started by: yvmy
0 Replies
8. Shell Programming and Scripting
Hey guys. I know pratically 0 about Linux, so could anyone please give me instructions on how to accomplish this ?
The distro is RedHat 4.1.2 and i need to find and replace a multiple lines string in several php files across subdirectories.
So lets say im at root/dir1/dir2/ , when i execute... (12 Replies)
Discussion started by: spfc_dmt
12 Replies
9. Shell Programming and Scripting
I have a list of files all over a file system e.g.
/home/1/foo/bar.x
/www/sites/moose/foo.txtI'm looking for strings in these files and want to replace each occurrence with a replacement string, e.g.
if I find: '#@!^\&@ in any of the files I want to replace it with: 655#@11, etc.
There... (2 Replies)
Discussion started by: spacegoose
2 Replies
10. Shell Programming and Scripting
Good Evening Folks -
Happy Friday!
I have a need to replace a certain string in all .csv files from "0.00" to "#Missing" in my /app/hyp_app/files directory.
Does anyone have a script they use regularly that's rather quick in performance? My files are rather large so I'm looking for a... (5 Replies)
Discussion started by: SIMMS7400
5 Replies
TBLCVT(1) General Commands Manual TBLCVT(1)
NAME
tblcvt - troffcvt preprocessor to convert tbl-format tables
SYNTAX
tblcvt [ file ] ...
DESCRIPTION
tblcvt examines troff input for tables that would normally be processed by the tbl program, i.e., for lines bracketed by the .TS table
start and .TE table end requests. tblcvt parses table specifications and data and converts it to a form that troffcvt can more easily han-
dle. This is useful for document processing commands that use troffcvt, since troffcvt has knowledge only of the troff input language, and
knows nothing of the tbl input language.
tblcvt is a direct replacement for tbl. Suppose you would normally process a document using tbl and troff (or groff, etc.) like this:
% tbl file ... | troff ...
To format the document using tblcvt and troffcvt, use a command like this:
% tblcvt file ... | troffcvt ...
Actually, it's more likely that you'll be using one of the troffcvt front ends such as troff2html than that you'll be using troffcvt
directly. troffcvt in the preceding command may be replaced by the name of the front end:
% tblcvt file ... | troff2html ...
If it seems that troffcvt or a front end are not reading the output from tblcvt , specify - after the option list to explicitly tell them
to read the standard input after processing their other options:
% tblcvt file ... | troffcvt ... -
% tblcvt file ... | troff2html ... -
DIAGNOSTICS
Diagnostic messages are written in this format:
tblcvt:line l (table t, section s): message...
This indicates that a problem was detected at line number l, and that tblcvt considers the line to be part of table number t and section s
within the table. Section numbers start at one and are incremented for each .T& request that occurs within a table specification.
SEE ALSO
troffcvt(1)
tblcvt - A troffcvt Preprocessor
WHO-TO-BLAME
Paul DuBois, dubois@primate.wisc.edu.
BUGS
For the most part, tblcvt assumes your tables make sense, i.e., are legal according to the tbl input language. tblcvt may complain about
malformed table constructs (if it detects them), but it may also get confused by them and generate garbage output.
tblcvt generates troff output that uses long request names, so you can't use compatibility mode -C ( option) with troffcvt or a troffcvt
front end.
tblcvt doesn't support vertically-spanned lines. It prints a warning when it detects one, but the table output won't be correct.
TBLCVT(1)