If you want to parse matching {} you will need a parsing algorithm using a stack. On the other hand if you rely on nice formatting so you just want to extract stuff between curly braces found in the first column things are easier. The following perl script for example will split the input into several output files:
Hi,
I have already read a lot of posts on sending attachments in unix...but none of them were of help for my problem...so here goes..
i wanna attach a text file and send to a mail id..used the following code :
uuencode "$File1" "$File1" ;|mail -s "$Mail_sub" abc@abc.com
it works... (2 Replies)
Hi expersts,
in my directory i have *.txt and *.TXT and *.TXT.log, *.txt.log
I want list only .txt and .TXT files in one command...
how to ??
//purple (1 Reply)
Hi all
I would need some help to introduce 'break' lines into the following
data by using awk:
original data:
RECORD 1000 aaa xxxxxx
RECORD 1001 aaa xxxxxx
RECORD 1002 bbb xxxxxx
RECORD 1003 bbb xxxxxx
RECORD 1004 bbb xxxxxx
RECORD 1005 ccc xxxxxx
RECORD 1006 ccc xxxxxx
RECORD 1007... (5 Replies)
hi everyone,
i am a newbie in shell programming. and i want to simply go through a text file that contains 3 "columns", split by ';'
customerID ; link-to-contract ; save-as-filename
so an example would simply look like this
now i want to loop through every line, and save the file from... (3 Replies)
Hi,
I need to parse text, xml files to get the statistic numbers and prepare summary csv file.
What is the best way to parse these file and prepare csv file.
Any idea you have , please?
Regards, (2 Replies)
This is appending a column.
My question is fairly simple. I have a program generating data in a form like so:
1 20
2 22
3 23
4 12
5 43
For ever iteration I'm generating this data. I have the basic idea with cut -f 2 fileA.txt | paste -d >> FileB.txt ???? I want FileB.txt to grow, and... (4 Replies)
I want to add/append the info in the following format to my.txt file.
20130702|abcd20130702.txt FN|SN|DOB
I tried the below script but it throws me some exceptions.
<#!/bin/sh
dt = date '+%y%m%d'members;
echo $dt+|+members+$dt;
/usr/bin/awk -f
BEGIN { FS="|"; OFS="|"; } { print... (6 Replies)
In xml file i have following data where some tags like<ChrgBr> may not be present in every next file.
So i want these values to be stored in some variable like var1="405360,00" , var2="DEBT" and so on
,but if <ChrgBr> tag has no value or is absent var2 should have space like var2=" " so
that i... (1 Reply)
I have a requirement to parse a dataflex .txt file and break it into separate files within the Windows server env. Is there any special characters I should pay particular attention on the unix side? Any ideas?
Thanks in advance (2 Replies)
Dear all,
I have a huge txt file (DATA.txt) with the following content . From this txt file, I want the following output using some shell script.
Any help is greatly appreciated.
Greetings,
emily
DATA.txt (snippet of the huge text file)
407202849... (2 Replies)
Discussion started by: emily
2 Replies
LEARN ABOUT DEBIAN
latexml::mathparser
LaTeXML::MathParser(3pm) User Contributed Perl Documentation LaTeXML::MathParser(3pm)NAME
"LaTeXML::MathParser" - parses mathematics content
DESCRIPTION
"LaTeXML::MathParser" parses the mathematical content of a document. It uses Parse::RecDescent and a grammar "MathGrammar".
Math Representation
Needs description.
Possibile Customizations
Needs description.
Convenience functions
The following functions are exported for convenience in writing the grammar productions.
"$node = New($name,$content,%attributes);"
Creates a new "XMTok" node with given $name (a string or undef), and $content (a string or undef) (but at least one of name or content
should be provided), and attributes.
"$node = Arg($node,$n);"
Returns the $n-th argument of an "XMApp" node; 0 is the operator node.
"Annotate($node,%attributes);"
Add attributes to $node.
"$node = Apply($op,@args);"
Create a new "XMApp" node representing the application of the node $op to the nodes @args.
"$node = ApplyDelimited($op,@stuff);"
Create a new "XMApp" node representing the application of the node $op to the arguments found in @stuff. @stuff are delimited
arguments in the sense that the leading and trailing nodes should represent open and close delimiters and the arguments are seperated
by punctuation nodes. The text of these delimiters and punctuation are used to annotate the operator node with "argopen", "argclose"
and "separator" attributes.
"$node = recApply(@ops,$arg);"
Given a sequence of operators and an argument, forms the nested application "op(op(...(arg)))">.
"$node = InvisibleTimes;"
Creates an invisible times operator.
"$boole = isMatchingClose($open,$close);"
Checks whether $open and $close form a `normal' pair of delimiters, or if either is ".".
"$node = Fence(@stuff);"
Given a delimited sequence of nodes, starting and ending with open/close delimiters, and with intermediate nodes separated by
punctuation or such, attempt to guess what type of thing is represented such as a set, absolute value, interval, and so on. If nothing
specific is recognized, creates the application of "FENCED" to the arguments.
This would be a good candidate for customization!
"$node = NewFormulae(@stuff);"
Given a set of formulas, construct a "Formulae" application, if there are more than one, else just return the first.
"$node = NewList(@stuff);"
Given a set of expressions, construct a "list" application, if there are more than one, else just return the first.
"$node = LeftRec($arg1,@more);"
Given an expr followed by repeated (op expr), compose the left recursive tree. For example "a + b + c - d" would give "(- (+ a b c)
d)">
"Problem($text);"
Warn of a potential math parsing problem.
"MaybeFunction($token);"
Note the possible use of $token as a function, which may cause incorrect parsing. This is used to generate warning messages.
AUTHOR
Bruce Miller <bruce.miller@nist.gov>
COPYRIGHT
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
perl v5.10.1 2009-06-11 LaTeXML::MathParser(3pm)