04-18-2011
Thanks Franklin52, this was exactly what i needed.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Again Guys ,
Please i installed linux RH 6.1 on Toshiba , 10G , RAM=128 , 600 MHZ .
After i installed linux i got many error messages , seems it was not installed correctly , also when i finished installation it did not ask me for the 2nd installation CD , and when i logged as root , i... (5 Replies)
Discussion started by: tamemi
5 Replies
2. Shell Programming and Scripting
I have file with different columns
for ex.
contents of file "txt"
NAME AGE MARKS
HARRY 23 89
TOM 12 67
BOB 23 11
and you see its not formatted.Now, I need the file "txt" to be formatted like
COLUMN1 COLUMN2 COLUMN3
NAME AGE ... (3 Replies)
Discussion started by: vijay_0209
3 Replies
3. Shell Programming and Scripting
I have a file with a single filename in it, which I want to assign to a BASH variable, so I've been trying:
c=$(head -1 somefile)
echo $c
which outputs correctly, but them when I do
...
somecommand $c
it says it can't find the file, is that because it's grabbing the whole line, and... (5 Replies)
Discussion started by: unclecameron
5 Replies
4. Programming
I'm having problems with libreadline. When I write text longer than the current line, the text wraps back to the beginning of the line rather than to the next line. Also, when I use the arrow keys to edit something in that beginning part, it won't display at all (so I can edit only if I remember... (5 Replies)
Discussion started by: CRGreathouse
5 Replies
5. Programming
Hi,
I am new to using readline library to my application. Please I want to no how to write code for command line switches(options), i.e when i press tab the option of command as to change.
eg:
ls -a
ls -d
...so on ls as many options, here i want options to be completed using tab
... (9 Replies)
Discussion started by: vanid
9 Replies
6. Programming
Hi,
i have run the below perl code and i am getting an error
Error:readline() on closed filehandle OR at run.pl line 31.
CODE:
===========================================
open OR,$ARGV;
while (<OR>) { # find the batch date
next if length $_ < 3; # BLANK LINE
# last if $. > 120; #... (3 Replies)
Discussion started by: pspriyanka
3 Replies
7. Shell Programming and Scripting
dear all,
i have code shell like this but i want to using parameter for this shell how i can do that :ex ./sample.sh 100 500sample.sh
START=${1}
LAST=${2}
for (( a=${START}; a<=${LAST}; a++ ))
do
{
echo $a
}
donethx for your advice (5 Replies)
Discussion started by: zvtral
5 Replies
8. Shell Programming and Scripting
I just ran an application that crashed... but before it did, it managed to set readline echo off, and probably a bunch of other settings.
Is there any way I can just tell my shell to re-initialize? To get back to whatever state existed before my shell got messed up by this evil program? (2 Replies)
Discussion started by: jjinno
2 Replies
9. Programming
Hi: in the info page for readline library I read
-- Function: void rl_variable_dumper (int readable)
Print the readline variable names and their current values to
`rl_outstream'. If READABLE is non-zero, the list is formatted in
such a way that it can be made part of an... (1 Reply)
Discussion started by: stf92
1 Replies
10. Shell Programming and Scripting
Hi, I am new to UNIX and need your help in formatting the below input command to the desire output
Input:
CREATE UNIQUE INDEX XPKTABLE1
(
COL1,
COL2
) ON TABLE_NM;
Output:
COMMENT ON TABLE DB_NM.TABLE_NM AS 'PK=,COL1,COL2; ';
In... (14 Replies)
Discussion started by: varun2327
14 Replies
LEARN ABOUT DEBIAN
test::xml
Test::XML(3pm) User Contributed Perl Documentation Test::XML(3pm)
NAME
Test::XML - Compare XML in perl tests
SYNOPSIS
use Test::XML tests => 3;
is_xml( '<foo />', '<foo></foo>' ); # PASS
is_xml( '<foo />', '<bar />' ); # FAIL
isnt_xml( '<foo />', '<bar />' ); # PASS
is_well_formed_xml('<foo/>'); # PASS
is_well_formed_xml('<foo>'); # FAIL
DESCRIPTION
This module contains generic XML testing tools. See below for a list of other modules with functions relating to specific XML modules.
FUNCTIONS
is_xml ( GOT, EXPECTED [, TESTNAME ] )
This function compares GOT and EXPECTED, both of which are strings of XML. The comparison works semantically and will ignore
differences in syntax which are meaningless in xml, such as different quote characters for attributes, order of attributes or empty tag
styles.
Returns true or false, depending upon test success.
isnt_xml( GOT, MUST_NOT_BE [, TESTNAME ] )
This function is similiar to is_xml(), except that it will fail if GOT and MUST_NOT_BE are identical.
is_well_formed_xml( XML [, TESTNAME ] )
This function determines whether or not a given XML string is parseable as XML.
is_good_xml ( XML [, TESTNAME ] )
This is an alias for is_well_formed_xml().
NOTES
There are several features of XML::SemanticDiff that may suprise you if you are not aware of them. In particular:
o Leading and trailing whitespace is always stripped, even in elements with character content.
o Whitespace inside character content is always stripped down to a single space.
o In mixed content elements (ie: an element with both text and elements beneath it), all text is treated as a single value.
o The order of elements is ignored.
SEE ALSO
Test::XML::SAX, Test::XML::Twig.
Test::More, XML::SemanticDiff.
AUTHOR
Dominic Mitchell, <cpan2 (at) semantico.com>
COPYRIGHT AND LICENSE
Copyright 2002 by semantico
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2009-07-02 Test::XML(3pm)