02-17-2011
Sorry, it's a little hard because the site doesn't want me to include html tags.
Input: I mistyped link & img so that the forum would allow me to put tags
<linkk rel="stylesheet" type="text/css" href="localFolder/my.css"> <linkk rel="stylesheet" type="text/css" href="http://www.noob.com">
<imgg src="localFolder/sad.jpg"> <imgg src="htp://www.noob.com/sad.jpg">
<aa href="http://www.google.com">
Output:
<linkk rel="stylesheet" type="text/css" href="localFolder/my.css">
<imgg src="localFolder/sad.jpg">
<aa href="http://www.google.com">
----------
Essentially, I want to remove everything between < > if there is an http inside the < >, except for <a href>
Last edited by CowCow339; 02-17-2011 at 02:33 PM..
10 More Discussions You Might Find Interesting
1. Linux
Hi All,
I have following example file
i want to remove all html tags only,
Input File:
<html>
<head>
<title>Software Solutions Inc., </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor=white leftmargin="0" topmargin="0"... (2 Replies)
Discussion started by: btech_raju
2 Replies
2. Solaris
Hi All,
I have an external scsi harddrive (HD) connected directly to the workstation. I understand when the external HD is connected and turned on, and type in "devfsadm" command. Unix will detect it but not mount the drive.
So by typing in "format" command it will display the following:
#... (6 Replies)
Discussion started by: tlee
6 Replies
3. Shell Programming and Scripting
I'm going to have a text file formatted something like this:
some_name http://www.someurl.com/
another_name http://www.anotherurl.com/
third_name http://www.thirdurl.com/
I need to write a script that can rsync from a file path I'll set, to each URL in the list.
Any ideas? (8 Replies)
Discussion started by: ibsen
8 Replies
4. Shell Programming and Scripting
Hello,
i try to extract urls from google-search-results, but i have problem with sed filtering of html-code.
what i wont is just list of urls thay apears between ........<p><a href=" and next following " in html code.
here is my code, i use wget and pipelines to filtering. wget works, but... (13 Replies)
Discussion started by: L0rd
13 Replies
5. Web Development
Hi, I have problems with mod rewrite. I will try to describe...
I want clean urls but fail to make it work propperly. Maybe I have problems, because the content displayed is fetched from my other site...
There is a lot of stuff I already red about this, but somehow I can not find a solution... (2 Replies)
Discussion started by: lowmaster
2 Replies
6. Shell Programming and Scripting
Hi,
I need to basically get a list of all the tarballs located at uri
I am currently doing a wget on urito get the index.html page
Now this index page contains the list of uris that I want to use in my bash script.
can someone please guide me ,.
I am new to Linux and shell scripting.
... (5 Replies)
Discussion started by: mnanavati
5 Replies
7. Shell Programming and Scripting
Does anybody know how to remove all urls from html files?
all urls are links with anchor texts in the form of
<a href="http://www.anydomain.com">ANCHOR</a>
they may start with www or not.
Goal is to delete all urls and keep the ANCHOR text and if possible to change tags around anchor to... (2 Replies)
Discussion started by: georgi58
2 Replies
8. Shell Programming and Scripting
I am trying to remove a multiline HTML tag and its contents from a few HTML files following the same basic pattern. So far using regex and sed have been unsuccessful. The HTML has a basic structure like this (with the normal HTML stuff around it):
<div id="div1">
<div class="div2">
<other... (4 Replies)
Discussion started by: threesixtyfive
4 Replies
9. Shell Programming and Scripting
I am working on a web-concordance of Old Avestan and my concordance has produced a HTML file
The sort deployed by the HTML file is not something which we normally use. I have tried my best to force a sort within the concordance itself, but the sort order does not work.
I am giving below the sort... (6 Replies)
Discussion started by: gimley
6 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
We have a HTML source which will be processed using a informatica workflow. In between these two we have a Unix script which transforms the file.
We are getting an error from past week in the informatica saying invalid format, because the file has unused html reference (0-8,14-31 etc)... (2 Replies)
Discussion started by: karthik adiga
2 Replies
pfstag(1) General Commands Manual pfstag(1)
NAME
pfstag - Set or remove tags to/from pfs stream
SYNOPSIS
pfstag [--set [channel:]name=value] [--remove [channel:]name]
DESCRIPTION
Use this command to set or remove tags from the pfs-stream. Tags are used to add additional information to pfs frames and they are in the
format: 'name=value'. To learn more about tags, read 'Specification of the PFS File Format'.
Tags are set/removed to/from all pfs frames in the stream.
Note that currently only OpenEXR file format supports tags.
OPTIONS
--set [channel:]name=value], -s [channel:]name=value], --add [channel:]name=value]
Change existing or add a new tag of the given name. If no channel is given, tags are added to the frame.
--remove [channel:]name], -r [channel:]name]
Remove tag of the given name. Ignore if the tag does not exist. If no channel is given, tags are removed from the frame.
EXAMPLES
pfsin memorial.hdr | pfstag --add "EXTRA_INFO=foo" | pfsout memorial_ei.exr
Add tag "EXTRA_INFO=foo" to the memorial image and save it as memorial_ei.exr.
SEE ALSO
pfsin(1) pfsout(1)
BUGS
Please report bugs and comments to Rafal Mantiuk <mantiuk@mpi-sb.mpg.de>.
pfstag(1)