06-13-2018
The script connects to an API and gets the data. The data is returned in the output I provided.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
suppose if u have a file like that
Hen ABCCSGSGSGJJJJK 15
Cock ABCCSGGGSGIJJJL 15
* * * * * * : * * * . * * * :
Hen CFCDFCSDFCDERTF 30
Cock CHCDFCSDHCDEGFI 30
* . * * * * * * * : * * :* : : .
The output shud be
where there is : and .
It shud... (4 Replies)
Discussion started by: cdfd123
4 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a column in 2 different files which i want to compare, and output the results to a different file. The columns are in different positions in those 2 files.
File 1 the column is in position 10-15
File 2 the column is in position 15-20
Please advise
Thanks (1 Reply)
Discussion started by: samit_9999
1 Replies
3. UNIX for Advanced & Expert Users
Hi All,
I have two txt files like this
File1:
no name
----------
12 aaaa
23 bbbb
55 cccc
File2
dname dno
------------
civil 33
mech 55
arch 66
Now i want to compare col1 from File and col2 from File2, if its match i want fetch all columns from... (3 Replies)
Discussion started by: psiva_arul
3 Replies
4. Shell Programming and Scripting
hi guys,
i want to parse a file using public function, the file contain raw data in the below format i want to get the output like this to load it to Oracle DB
MARWA1,BSS:26,1,3,0,0,0,0,0.00,22,22,22.00
MARWA2,BSS:26,1,3,0,0,0,0,0.00,22,22,22.00
this the file raw format:
Number of... (6 Replies)
Discussion started by: dagigg
6 Replies
5. Shell Programming and Scripting
awk '{ gsub(/....=/,""); print }' want.dat >final.dat
the above awk command which removes all the chars before and including '=' on the entire row. --thats what it meant be.:)
but i need to remove text on column-wise on each row.
many thanks,
EM
---------- Post updated at 10:00 AM... (4 Replies)
Discussion started by: elamurugu
4 Replies
6. Shell Programming and Scripting
Hi,
I know that this topic has been discussed in the past and I've tried to follow all the guidelines. Anyhow, I following describe my problem.
I have a file (file1 , no. records = 67) containing pairs of IP addresses as follows (with single space as delimiter between the fields):
example... (5 Replies)
Discussion started by: amarn
5 Replies
7. Shell Programming and Scripting
Hi ,
I have a jil file which i am trying to parse and print the job name and the condition corresponding to it.
Below is the input file
/* -------------------- testjob1 -------------------- */
insert_job: testjob1 job_type: c
machine: unix
owner: chidori
condition: s(joba) and... (9 Replies)
Discussion started by: chidori
9 Replies
8. Shell Programming and Scripting
Output of the below code includes unmatched date.Please correct it
df -k|awk '$4>50 {print $1, "\t"$4,"\t" $7}'
It gives output less than 50% also. (5 Replies)
Discussion started by: vinil
5 Replies
9. Shell Programming and Scripting
My source file looks like this:
Cust-Number = "101"
Cust-Name="Joe"
Cust-Town="London"
Cust-hobby="tennis"
Cust-purchase="200"
Cust-Number = "102"
Cust-Name="Mary"
Cust-Town="Newyork"
Cust-hobby="reading"
Cust-purchase="125"
Now I want to parse this file (leaving out hobby) and... (10 Replies)
Discussion started by: Balav
10 Replies
10. Shell Programming and Scripting
Example:
I have files in below format
file 1:
zxc,133,joe@example.com
cst,222,xyz@example1.com
File 2 Contains:
hxd
hcd
jws
zxc
cst
File 1 has 50000 lines and file 2 has around 30000 lines :
Expected Output has to be :
hxd
hcd
jws (5 Replies)
Discussion started by: TestPractice
5 Replies
LEARN ABOUT MOJAVE
page_util_flow
page_util_flow(n) Parser generator tools page_util_flow(n)
__________________________________________________________________________________________________________________________________________________
NAME
page_util_flow - page dataflow/treewalker utility
SYNOPSIS
package require page::util::flow ?0.1?
package require snit
::page::util::flow start flowvar nodevar script
flow visit node
flow visitl nodelist
flow visita node...
_________________________________________________________________
DESCRIPTION
This package provides a single utility command for easy dataflow based manipulation of arbitrary data structures, especially abstract syn-
tax trees.
API
::page::util::flow start flowvar nodevar script
This command contains the core logic to drive the walking of an arbitrary data structure which can partitioned into separate parts.
Examples of such structures are trees and graphs.
The command makes no assumptions at all about the API of the structure to be walked, except that that its parts, here called nodes,
are identified by strings. These strings are taken as is, from the arguments, and the body, and handed back to the body, without
modification.
Access to the actual data structure, and all decisions regarding which nodes to visit in what order are delegated to the body of the
loop, i.e. the script.
The body is invoked first for the nodes in the start-set specified via start), and from then on for the nodes the body has requested
to be visited. The command stops when the set of nodes to visit becomes empty. Note that a node can be visited more than once. The
body has complete control about this.
The body is invoked in the context of the caller. The variable named by nodevar will be set to the current node, and the variable
named by flowvar will be set to the command of the flow object through which the body can request the nodes to visit next. The API
provided by this object is described in the next section, FLOW API.
Note that the command makes no promises regarding the order in which nodes are visited, excpt that the nodes requested to be visited
by the current iteration will be visited afterward, in some order.
FLOW API
This section describes the API provided by the flow object made accessible to the body script of ::page::util::flow.
flow visit node
Invoking this method requests that the node n is visited after the current iteration.
flow visitl nodelist
Invoking this method requests that all the nodes found in the list nodelist are visited after the current iteration.
flow visita node...
This is the variadic arguments form of the method visitl, see above.
BUGS, IDEAS, FEEDBACK
This document, will undoubtedly contain bugs and other problems. Please report such in the category page of the Tcllib SF Trackers
[http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have.
KEYWORDS
dataflow, graph walking, page, parser generator, text processing, tree walking
CATEGORY
Page Parser Generator
COPYRIGHT
Copyright (c) 2007 Andreas Kupries <andreas_kupries@users.sourceforge.net>
page 1.0 page_util_flow(n)