08-05-2012
I haven't noticed that it would have problems with -e
As you can see there are plenty of them and most of them works except for these three.
I haven't looked into anything but sed so far.
The first one's supposed to get rid of garbage that's not really useful once the targeted html page's been modified for offline use. However, this one sometimes works when the html page's size is really small, i.e. around our below 100kB. I thought that it might be a problem with buffer, but after some research I found out that GNU sed has no limit.
The other two are supposed to inject some Javascript and CSS to add some really handy features to the html.
Edit: on a second thought, I have no idea why have i included the third command with the S2 variable, because that works well.
And thanks for the quick reply.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am having a problem executing a sed substitute in a file. I have tried alot of different things I found in previous posts, however non seem to work.
I want to substitute this in $FILE:
VALUE=33.4
In the script I have tried the following:
prev=$(awk -F"=" '{ print $2 }' $FILE )
new=$(echo... (16 Replies)
Discussion started by: newbreed1
16 Replies
2. Solaris
Hello,
I'm trying to apply the patch on Solaris 9 :
$/jac/update$ patchadd ./112945-46
Checking installed patches...
One or more patch packages included in
112945-46 are not installed on this system.
Patchadd is terminating.
The error message is not really talkative so I had a... (7 Replies)
Discussion started by: Tex-Twil
7 Replies
3. Shell Programming and Scripting
Hi All,
I'm currently using SED to make various changes to some .xml files I'm working on, but I'm stuck on this particular problem.
I want to remove '<placeholder>element-name</placeholder>' from the following:
<heading>Element <placeholder>element-name</placeholder> not... (2 Replies)
Discussion started by: Steve_altius
2 Replies
4. Shell Programming and Scripting
I am trying to get rid of some ending tags but I run into some problems.
Ex.
How are you?</EndTag><Begin>It is fine.</Begin><New> Just about
I am trying to get rid of the ending tags, starts with </ and ending with >. (which is </EndTag> and </Begin>)
I tried the following
sed... (2 Replies)
Discussion started by: quixoticking11
2 Replies
5. UNIX for Dummies Questions & Answers
I'm using sed to perform a simply search and replace. The typical data is:
<fig><image href="Graphics/BAV.gif" align="left" placement="break"
I need to replace the value in the first set of quotes, keeping the remainder of the line the same. Thus:
<fig><image href="NEW_VALUE" align="left"... (3 Replies)
Discussion started by: Steve_altius
3 Replies
6. Shell Programming and Scripting
HI there. My teacher asked us to write a code for this question
Write a Unix shell script named 'mode' that accepts two or more arguments, a file mode, a command and an optional list of parameters and performs the given command with the optional parameters on all files with that given mode. ... (1 Reply)
Discussion started by: femchi
1 Replies
7. Homework & Coursework Questions
Write a Unix shell script named 'mode' that accepts two or more arguments, a file mode, a command and an optional list of parameters and performs the given command with the optional parameters on all files with that given mode.
For example, mode 644 ls -l should perform the command ls -l on all... (5 Replies)
Discussion started by: femchi
5 Replies
8. Shell Programming and Scripting
I am trying to do what I thought should be a simple substitution, but I can't get it to work.
File:
Desire output:
I thought I'd start with a sed command to remove the part of the header line preceding the string "comp", then go on to remove the suffix of the target string (e.g. ":3-509(-)"),... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
9. Shell Programming and Scripting
Greetings Experts,
I am on AIX and in process of creating a re-startable script that connects to Oracle and executes the statements. The sample contents of the file1 is
CREATE OR REPLACE VIEW DB_V.TAB1 AS SELECT * FROM DB_T.TAB1;
....
CREATE OR REPLACE VIEW DB_V.TAB10 AS SELECT * FROM... (9 Replies)
Discussion started by: chill3chee
9 Replies
10. UNIX for Beginners Questions & Answers
hi all,
i'd like to modify a file with sed , i want to substuite a char "-" with "/"
how can i do this?
Thanks for all
regards
Francesco (16 Replies)
Discussion started by: Francesco_IT
16 Replies
LEARN ABOUT DEBIAN
html_cssdefaults
doctools::html::cssdefaults(3tcl) Documentation tools doctools::html::cssdefaults(3tcl)
__________________________________________________________________________________________________________________________________________________
NAME
doctools::html::cssdefaults - Default CSS style for HTML export plugins
SYNOPSIS
package require Tcl 8.4
package require doctools::html::cssdefaults ?0.1?
::doctools::html::cssdefaults::contents
_________________________________________________________________
DESCRIPTION
This package provides a single command providing access to the text of the default CSS style to use for HTML markup generated by the vari-
ous HTML export plugins.
This is an internal package of doctools, for use by export plugins, i.e. the packages converting doctools related documented into other
formats, most notably HTML.
API
::doctools::html::cssdefaults::contents
This command returns the text of the default CSS style to use for HTML markup generated by the various HTML export plugins.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category doctools
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
KEYWORDS
CSS, HTML, doctools, export, plugin, style
CATEGORY
Documentation tools
COPYRIGHT
Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
doctools2base 0.1 doctools::html::cssdefaults(3tcl)