I am dissecting the code and trying to understand piece by piece
tr -d '\000' -- This will remove the binary zeroes in the data file
RS="<" -- Record Seperator is <
NF -- total number of fields
/[pP][rR][oO][vV][iI][dD][eE][rR]/ -- You were trying to match both upper case and lower case combination for a better match
-F'"" -- to get the value of provider in between double quotes
-v -- passing shell variables to awk variables ...????
you were finding the PROVIDER tag and for each record/tag until total number of fields/characters and formatting the output to trim it to the value. can you please explain it if i am wrong? i didn't understand what is the significance of -v ?
Help..
I need to decrypt a file that was encrypted using DES 56 Bit.
I have the encryption key and the block size used but no idea what utility to use..
I then need to encrypt the file using pgp and another key I have.. againt I dont know what utility to use.
I am running solaris 9 ....
... (0 Replies)
Hi,
I'm trying to decrypt a gpg file thorugh a shell script. But i' could'nt. My script is ,
-sh-3.1$ cat test_gpg.sh
#!/bin/ksh
echo " Hello, iam testing GPG"
gpg prabhu.txt.gpg <<EOF
prompt prabhu
EOF
exit 0
The file i'm trying to decrypt is prabhu.txt.gpg and my passphrase is... (1 Reply)
Hello all
I am getting a encrypted file (.pgp) and a key which i have to use to decrypt that file. I couldn't understand where to put the key on my unix box so that decryption happens. Please reply. (2 Replies)
I need to decrypt a file in a directory, I need to write a shl scrip & cron job
How I find the files in the directory:
the file is like this:
dailypayments_sfs_payment_201011151800.dat -d
The decrypt command:
gpg -o dailypayments_sfs_payment_201011151800.dat -d
20101115 (the date... (7 Replies)
How to decrypt a file in unix? I dont know the type of decryption nor the type of text data it contains. We extracted the file from sfdc & need to process it in unix. When extracted, we get encrypted data in the file. The file content is-
... (0 Replies)
I want to propose a change to the run script environment. This would change the effective group of the wsadmin account to prodview with a umask of 027 before running our services. In linux this can be accomplished by the following
#!/bin/ksh
#
# Original shell
#
newgrp prodview <<... (1 Reply)
Hello,
I have few files on unix which are payroll related and I need them to encrypt with password so others wouldn't see the data. I use ETL tool and would like to know the unix command that does encryption/decryption to use in the ETL.
Thank you,
Sri (3 Replies)
Discussion started by: eskay
3 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)