10-24-2019
vgersh99, i tried that before but i don't know why it lists the whole file
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part.
Same problem happens in "type" command in MS-DOS.
I know you can do it by opening it in Internet Explorer,... (4 Replies)
Discussion started by: los111
4 Replies
2. Shell Programming and Scripting
Hai friends
I have a small doubt..
how can we use html tag in shell scripting
code :
echo "<html>"
echo "<body>"
echo " welcome to peace world "
echo "</body>"
echo "</html>"
output displayed like this:
<html>
<body>
welcome to peace world
</body>
</html> (5 Replies)
Discussion started by: jrex1983
5 Replies
3. UNIX for Advanced & Expert Users
hi all,
i have a html file something similar to this.
<tr class="evenrow">
<td class="data">added</td><td class="data">xyz@abc.com</td>
<td class="data">filename.sql</td><td class="modifications-data">08/25/2009 07:58:40</td><td class="data">Added TK prof script</td>
</tr>
<tr... (1 Reply)
Discussion started by: sais
1 Replies
4. Shell Programming and Scripting
Hi!
I have a bunch of HTML files, which I want to parse to CSV files. Every page has a table in it, and I need to parse each row into a csv record.
With awk and sed, I managed to put every table row in separate lines. So my file looks like this:
<TR> .... </TR>
<TR> .... </TR>
...One... (1 Reply)
Discussion started by: senszey
1 Replies
5. Shell Programming and Scripting
Guys,
I have a little script that I got of the internet and that I use in Squid to block ads.
I used that script with linux but now i have moved my servers to freebsd. I have a step learning curve there but it is fun: Back to the script issue.
The script used to work i with linux but... (15 Replies)
Discussion started by: zongo
15 Replies
6. Shell Programming and Scripting
I have an XML tag like this:
<property name="agent" value="/var/tmp/root/eclipse" />
Is there way using awk that i can get the value from the above tag. So the output should be:
/var/tmp/root/eclipse
Help will be appreciated.
Regards,
Adi (6 Replies)
Discussion started by: asirohi
6 Replies
7. Shell Programming and Scripting
I want to print from <fruits> to </fruits> tag which have <fruit> as mango. Also i want both <fruits> and </fruits> in output. Please help
eg.
<fruits>
<fruit id="111">mango<fruit>
.
another 20 lines
.
</fruits> (3 Replies)
Discussion started by: Ashik409
3 Replies
8. Shell Programming and Scripting
I have this XML file -
<gp>
<mms>1110012</mms>
<tg>988</tg>
<mm>LongTime</mm>
<lv>
<lkid>StartEle=ONE, Desti = Motion</lkid>
<kk>12</kk>
</lv>
<lv>
<lkid>StartEle=ONE, Source = Velocity</lkid>
<kk>2</kk>
</lv>
<lv>
... (3 Replies)
Discussion started by: NeedASolution
3 Replies
9. Shell Programming and Scripting
Hi Guys
Here is my Input :
<?xml version="1.0" encoding="UTF-8"?>
<xn:MeContext id="01736">
<xn:VsDataContainer id="01736">
<xn:attributes>
<xn:vsDataType>vsDataMeContext</xn:vsDataType>
... (12 Replies)
Discussion started by: pareshkp
12 Replies
10. Shell Programming and Scripting
I want to clean a html file.
I try to remove the script part in the html and remove the rest of tags and empty lines.
The code I try to use is the following:
sed '/<script/,/<\/script>/d' webpage.html | sed -e 's/<*>//g' | sed '/^\s*$/d' > output.txt
However, in this method, I can not... (10 Replies)
Discussion started by: YuhuiFeng
10 Replies
LEARN ABOUT DEBIAN
mailman2lurker
MAILMAN2LURKER(8) Administrative commands MAILMAN2LURKER(8)
NAME
mailman2lurker - Import mailman lists and their archives into a lurker database.
SYNOPSIS
mailman2lurker -i|-p [options]
DESCRIPTION
mailman2lurker has mainly two functions. First, it parses mailman's lists and creates a lurker configuration include out of them. Second,
it imports archives from mailman lists into a lurker database.
To build a new lurker database from mailmans archives, first run 'mailman2lurker -p'. Next you need to add 'include =
/etc/lurker/lurker.conf.mailman' into /etc/lurker/lurker.conf.local. Finally import mailmans mboxes by running 'mailman2lurker -i'.
If you want to add new lists to an already existing lurker configuration, run 'mailman2lurker -p -w newlists' and afterwards
'mailman2lurker -i -f newlists'. This will import only the mbox files of mailman lists that have been added to the lurker configuration
because they were new to lurker.
COMMANDS
-p, --parse
Parse mailman lists, and create a lurker configuration include file containing all parsed lists. Lists that are already configured in
lurker are ignored.
-i, --import
Import archives of all lists. This parses the lurker configuration and imports the mailman mbox at
/var/lib/mailman/archives/private/<list>.mbox/<list>.mbox for every list.
OPTIONS
-c, --config <config>
Use <config> as lurker configuration file. Default: /etc/lurker/lurker.conf
-o, --outfile <outfile>
Write list configuration to <outfile>. If this is not specified, <lurker.conf>.mailman will be used. This option is only useful in
conjunction with -p.
-g, --group <group>
Use <group> for new lists. Default is 'undef'. This option is only useful in conjunction with -p.
-a, --listhost <listhost>
Use <listhost> as host for new list addresses. If a new list is called 'mylist' and <listhost> is lists.org, then the list address will
be mylist@lists.org. Default is 'example.org'. This option is only useful in conjunction with -p.
-l, --link <url link>
Use <url link> as base for links of new lists. If a list is called 'mylist', and <url link> is 'http://lists.org', then the link
address will be http://lists.org/mylist. Default is 'http://example.org'. This option is only useful in conjunction with -p.
-s, --lang <language>
Use <language> as language for new lists. Needs to be a language token. Default is 'en'. This option is only useful in conjunction
with -p.
-w, --write-lists <file>
Write a list of all lists that have been added to the lurker configuration. Safe that list in <file>. Default is off. This option is
only useful in conjunction with -p.
-x, --list-cmd <file>
Use <command|file> to get the list of mailman lists that should be parsed. When <command|file> is a command, it needs to end with '
|'. Default is '/var/lib/mailman/bin/list_lists |'. This option is only useful in conjunction with -p.
-f, --listfile <file>
Import only lists that are listed in <file>. This option is only useful in conjunction with -i.
-d, --lists <one[,two,...]>
Import only lists that are given as argument. This option is only useful in conjunction with -i.
-h, --help
Display a help message.
-v, --version
Display mailman2lurker's version number.
SEE ALSO
list_lists(8), lurker-index(8)
AUTHOR
This program was written by Jonas Meurer <jonas@freesources.org>.
COPYRIGHT
mailman2lurker may be copied and modified under the terms of the GNU General Public License.
2011-09-19 MAILMAN2LURKER(8)