Hello all, need a little help.
I have an input variable such as ARGV which equals something like
/use/home/name/script/test.dat
I need to be able to get just the "test.dat" (i.e. the file name) at the end of the directory and the directory can be anything and any length. To put it another... (3 Replies)
I have a string of data that looks like this:
private.enterprises.954.1.1.1.1.1.2618 \(OctetString\): U private.enterprises.954.1.1.1.1.2.2618 \(OctetString\): 2618
I am trying to parse the string to only return the values after the ":". Ex from above "U" and "2618".
Any suggestions? (5 Replies)
I want to get filenames from the following input. How can I parse this in bash.
input data
-------------------------------------------------------------------
path=/aaa/bbb/filename1;/aaa/filename2;/aaa/bbb/ccc/ddd/filename3
-------------------------------------------------------------------... (13 Replies)
Hi,
I am wondering if there's a simpler way to extract the second occurrence of a word enclosed in that matches my search criteria.
Sample Input is as follows:
Error installing feature - com.er.nms.cif.ist.NoMatchingUpgra
Error installing feature -... (4 Replies)
Hi Guys,
I spend half a day getting this to work with no luck, perhaps you guys can help..
I have a string from a file looking like this:
module::name=test::type=generic_data::exec=snmpget.......::desc=A Little Test::interval=300
what I would like to split it, so I get a value for each... (3 Replies)
I'm working in korn shell and have a variable which contains a string like:
aa_yyyymmdd_bbb_ccc_ddd.abc. I want to treat the _ and . as delimiters and parse the string so I end up with 6 values in variables that I can manipulate. My original plan was to use
var1=`echo $sting1 | cut -c1-c2` but... (9 Replies)
I've a problem parsing a string as a command:
Consider script stefano.sh as following:
#!/usr/bin/sh
txtshell="./parser.sh /ews/MyEventHandler/data/handler/StopAndMail.php eventid=StopAndMail.MVIN.6300 lot_number=1122FXB facility=EWSF3 'mailto=prova.prova@nohost.com, prova.test@nohost.com'... (2 Replies)
Hi,
I would like to be able to parse out a substring matching a basic pattern, which is a character followed by 3 or 4 digits (for example S1234 out of a larger string). The main string would just be a filename, like Thisis__the FileName_S1234_ToParse.txt. The filename isn't fixed, but the... (2 Replies)
Hi Perl Guys
I have another perl question
I have the following code that i have written
Getopt::Long::config(qw( permute bundling ));
my $OPT = {};
GetOptions($OPT, qw(
ver=s
help|h
)) or die "options parsing failed";
This will allow the user to do something like... (4 Replies)
Discussion started by: ab52
4 Replies
LEARN ABOUT OSX
tdomcmd
tdom(n) tdom(n)
__________________________________________________________________________________________________________________________________________________NAME
tdom - tdom is an expat parser object extension to create an in-memory DOM tree from the input while parsing.
SYNOPSIS
package require tdom
set parser [expat]
tdom $parser enable
_________________________________________________________________DESCRIPTION
tdom adds the C handler set "tdom" to an tcl expat parser obj. This handler set builds an in-memory DOM tree out of the input, parsed by
the parser. A DOM tree created this way behave exactly like a DOM tree created by the "dom" command (see there). In fact, tdom is only
another interface to the same functionality; it uses the code behind the dom code for building the DOM tree.
tdom parserObj enable
Adds the tdom C handler set to a Tcl expat parser object. Next time, the parser parses input, the tdom C handler functions create an
in-memory DOM tree.
tdom parserObj getdoc
Returns the DOM tree as domDoc (see there) object.
tdom parserObj setResultEncoding
See the method setResultEncoding of the dom command.
tdom parserObj setStoreLineColumn ?boolean?
See the method setStoreLineColumn of the dom command.
tdom parserObj remove
Removes the tdom C handler set from the parser object.
tdom parserObj keepEmpties
See the option -keepEmpties of the dom command.
tdom parserObj setExternalEntityResolver script
SEE ALSO
dom, expat
KEYWORDS
DOM, SAX, C handler set
Tcl tdom(n)