11-09-2005
shell scripts help
Hi, I am not experienced in shell scripts, I hope someone can give some hint for the following problem
I have html file like this
<html>
<body>
Some stuff
More stuff
<pre>
A
B
</pre>
Still more stuff
And more
<pre>
C
D
</pre>
Additional stuff
</body>
</html>
I want to write the script to red this file and dump out
The items within the <pre> tags. For example, the output for the above file
shouild be
A
B
C
D
Thanks
Angela
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi!
I have added a line into /etc/profile which looks like-
date > $HOME/.lastloggedon
This puts a file lastloggedon into everyones directory who has logged in recently.
The trouble I am having is getting the information back out.
I was hoping there was a command using find which brought... (1 Reply)
Discussion started by: karenshaw
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
i have made a script which makes some analyses on some differnet hosts.
but i have a problem to make this script more quicker ...
i would like to enter more a one hosts in the query
(in my script are this:
Pls enter the Hostname ...
read hostname
for i in $hostname
do
echo... (5 Replies)
Discussion started by: scottl
5 Replies
3. AIX
Hi,
Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies
4. Shell Programming and Scripting
Hello,
I'm very very fresh with unix, and I would like to get familiar with it.
I want to know what is Shell scripting and how other programming languages connects with it.
And is there any way to learn the shell scripting, with some book and some simulator to practice on.
Thanks ahead. (2 Replies)
Discussion started by: holler1
2 Replies
5. Shell Programming and Scripting
if I run the below mentioned code, i am getting error. I dunno why. plz help me out this code runs a sql query and sends the result by email
#!/bin/ksh
#
# Purpose: - Report Workflows that have Persistence turned ON
echo "Workflow Persistence Report Started: `date '+%Y%m%d_%H%M%S'`" >>... (6 Replies)
Discussion started by: ragha81
6 Replies
6. AIX
I would like to seek some expertise of all our AIX experts on board.
1) I would like know how to get a return exit code of a command. I found that there are exist code for each and every command run in AIX but I just can't get the return code from my scripts.
A=`cp /home/abc/abc.txt... (7 Replies)
Discussion started by: kwliew999
7 Replies
7. HP-UX
I have a text file . Format of text file.
djss:xd:78:isdev:"test server"
this type of row. (approx 30).
I want to display like that
1. djjs@msxd testserver 2. xjfd@msxd devserver
3. 4
select any one from above choice : 1... (5 Replies)
Discussion started by: rastogideepak
5 Replies
8. Shell Programming and Scripting
deleted (1 Reply)
Discussion started by: zxc
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Probably a real easy one for someone...I need to have a scheduled cp job run from crontab to copy certain files and directories to a shared NFS storage.
The script I have works fine, except I need to exclude certain directories to stop issues with symbolic links, can someone explain... (2 Replies)
Discussion started by: paul.duncalf
2 Replies
10. Shell Programming and Scripting
Hello gurus,
I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script.
i m looking for something like this
call 3.1;
If 3.1 = "complete" then
call 3.2;
if 3.2 = ''COMPlete" then
call 3.3;
else
exit
The... (1 Reply)
Discussion started by: shashi369
1 Replies
LEARN ABOUT CENTOS
pod::simple::debug
Pod::Simple::Debug(3) User Contributed Perl Documentation Pod::Simple::Debug(3)
NAME
Pod::Simple::Debug -- put Pod::Simple into trace/debug mode
SYNOPSIS
use Pod::Simple::Debug (5); # or some integer
Or:
my $debuglevel;
use Pod::Simple::Debug ($debuglevel, 0);
...some stuff that uses Pod::Simple to do stuff, but which
you don't want debug output from...
$debug_level = 4;
...some stuff that uses Pod::Simple to do stuff, but which
you DO want debug output from...
$debug_level = 0;
DESCRIPTION
This is an internal module for controlling the debug level (a.k.a. trace level) of Pod::Simple. This is of interest only to Pod::Simple
developers.
CAVEATS
Note that you should load this module before loading Pod::Simple (or any Pod::Simple-based class). If you try loading Pod::Simple::Debug
after &Pod::Simple::DEBUG is already defined, Pod::Simple::Debug will throw a fatal error to the effect that "it's s too late to call
Pod::Simple::Debug".
Note that the "use Pod::Simple::Debug ($x, somenum)" mode will make Pod::Simple (et al) run rather slower, since &Pod::Simple::DEBUG won't
be a constant sub anymore, and so Pod::Simple (et al) won't compile with constant-folding.
GUTS
Doing this:
use Pod::Simple::Debug (5); # or some integer
is basically equivalent to:
BEGIN { sub Pod::Simple::DEBUG () {5} } # or some integer
use Pod::Simple ();
And this:
use Pod::Simple::Debug ($debug_level,0); # or some integer
is basically equivalent to this:
my $debug_level;
BEGIN { $debug_level = 0 }
BEGIN { sub Pod::Simple::DEBUG () { $debug_level }
use Pod::Simple ();
SEE ALSO
Pod::Simple
The article "Constants in Perl", in The Perl Journal issue 21. See <http://interglacial.com/tpj/21/>
SUPPORT
Questions or discussion about POD and Pod::Simple should be sent to the pod-people@perl.org mail list. Send an empty email to
pod-people-subscribe@perl.org to subscribe.
This module is managed in an open GitHub repository, <https://github.com/theory/pod-simple/>. Feel free to fork and contribute, or to clone
<git://github.com/theory/pod-simple.git> and send patches!
Patches against Pod::Simple are welcome. Please send bug reports to <bug-pod-simple@rt.cpan.org>.
COPYRIGHT AND DISCLAIMERS
Copyright (c) 2002 Sean M. Burke.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
AUTHOR
Pod::Simple was created by Sean M. Burke <sburke@cpan.org>. But don't bother him, he's retired.
Pod::Simple is maintained by:
o Allison Randal "allison@perl.org"
o Hans Dieter Pearcey "hdp@cpan.org"
o David E. Wheeler "dwheeler@cpan.org"
perl v5.16.3 2013-05-03 Pod::Simple::Debug(3)