Sponsored Content
Full Discussion: Matching IF
Top Forums UNIX for Dummies Questions & Answers Matching IF Post 302448979 by vemana on Friday 27th of August 2010 05:33:35 PM
Old 08-27-2010
Matching IF

Hi All,
I have a IF loop followed by THEN and a a closing FI.I am trying to find the matching 'FI' for 'IF'.I am wokring on modifying 2000 line code and its become extremely difficult to find the matching of 'IF' manually for on e of the block.
Can you guys throw some light please?

Thanks
Vemana
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Matching string

Hello, i have a program where i have to get a character from the user and check it against the word i have and then replace the character in a blank at the same position it is in the word. (7 Replies)
Discussion started by: nehaquick
7 Replies

2. UNIX for Dummies Questions & Answers

Matching

Can anyone give a sample example of comparing two strings using matching concept in unix shell programming. say we have two strings,S1 = ravi and S2 = kiran how can i use matching concept to compare S1 and S2 Can anyone please help me. (2 Replies)
Discussion started by: veerumahanthi41
2 Replies

3. UNIX for Dummies Questions & Answers

Pattern Matching

Hi Folks, I have the following requirement: I have a file that is containing numerous queries. The tables name mentioned in the queries are in the following format : SchemaName.Tablename. e.g COPDB.TableName. I need to take out all the COPDB.TableName pattern and write it to a different... (0 Replies)
Discussion started by: Siv_Pat
0 Replies

4. Shell Programming and Scripting

Pattern Matching

Hi Folks, I have the following requirement: I have a file that is containing numerous queries. The tables name mentioned in the queries are in the following format : SchemaName.Tablename. e.g COPDB.TableName. I need to take out all the COPDB.TableName pattern and write it to a different... (6 Replies)
Discussion started by: Siv_Pat
6 Replies

5. Shell Programming and Scripting

awk: matching and not matching

Hello all, simple matching and if not match problem that i can't figure out. file1 hostname: 30 10 * * * /home/toto/start PROD instance_name1 -p 00 9 * * * /home/toto/start PROD instance_name2 -p 15 8 * * * /home/toto/start PROD instance_name3 -p hostname2: 00 8 * * *... (5 Replies)
Discussion started by: maverick72
5 Replies

6. Shell Programming and Scripting

matching in loop

hello all, this is probably very simple for you guys but i am trying to achive something like below...i have 2 files...file 1 has entries like below DB1:NS DB2:NS DB3:NS DB4 DB5:NS and file2 as below DB1 DB2 DB5 i was to write a loop statment were if there is a matching... (1 Reply)
Discussion started by: abdul.irfan2
1 Replies

7. Shell Programming and Scripting

Pattern matching

Hi guys I am trying to create a regular expression to match a word with the following pattern: any letter(one or more occurence) followed by a digit(one or more occurence) followed by any letter(one or more occurence) I have tried the following regex but it fails to find what I need: $... (4 Replies)
Discussion started by: aoussenko
4 Replies

8. Shell Programming and Scripting

Insert lines above matching line with content from matching

Hi, I have text file: Name: xyz Gender: M Address: "120_B_C; ksilskdj; lsudlfw" Zip: 20392 Name: KLM Gender: F Address: "65_D_F; wnmlsi;lsuod;,...." Zip:90233I want to insert 2 new lines before the 'Address: ' line deriving value from this Address line value The Address value in quotes... (1 Reply)
Discussion started by: ysrini
1 Replies

9. Shell Programming and Scripting

Compare file1 for matching line in file2 and print the difference in matching lines

Hello, I have two files file 1 and file 2 each having result of a query on certain database tables and need to compare for Col1 in file1 with Col3 in file2, compare Col2 with Col4 and output the value of Col1 from File1 which is a) not present in Col3 of File2 b) value of Col2 is different from... (2 Replies)
Discussion started by: RasB15
2 Replies

10. Shell Programming and Scripting

awk to combine all matching dates and remove non-matching

Using the awk below I am able to combine all the matching dates in $1, but I can not seem to remove the non-matching from the file. Thank you :). file 20161109104500.0+0000,x,5631 20161109104500.0+0000,y,2 20161109104500.0+0000,z,2 20161109104500.0+0000,a,4117... (3 Replies)
Discussion started by: cmccabe
3 Replies
ALGOTUTOR(1)						User Contributed Perl Documentation					      ALGOTUTOR(1)

NAME
algotutor - an interactive program for observing the intermediate steps of algorithms. SYNOPSIS
algotutor [OPTION] ... DATA ... DESCRIPTION
algotutor is an interactive program for observing the intermediate steps of algorithms. The target audience is computer science students and/or anyone who studies algorithms and/or data structures. One can create data files in plain text format (actually perl anonymous hashes, but one need not care) and let algotutor runs through some predefined algorithm. Then one can step backward and forward through the execution sequence of the algorithm at different levels of details. It requires perl-Tk. DATA is the input data. For the dynamic programming algorithms such as lcs and matc, please see the respective entries in the following list; for other algorithms, it is the file name containing the actual input data. OPTIONS
-a ALGO Runs the algorithm ALGO. Currently ALGO can be one of: bst operations on binary search trees rbt operations on red-black trees (remove() is not implemented yet) heap operations on heaps -- the remove operation on a heap always removes the top element regardless of the argument sbs stack-based search on graphs, a variant of depth first search bfs breadth first search on graphs prim Prim's minimal spanning tree on graphs dijk Dijkstra's single-source shortest path on graphs flwa Floyd-Warshall's all-pair shortest path on graphs (very, very slow) dom 2-dimensional point domination graham Graham's scan for convex hull lcs longest common subsequence -- it requires two strings as the command line arguments. For example, "algotutor -a lcs AGCTATACGATGACT GTCAGTATAGTCATATG" matc optimal matrix chain multiplication -- it requires an alternating sequence of integers and matrix names as the command line arguments. For example, "algotutor -a matc 32 A 35 B 24 C 30 D 36 E 25 F 40 G 34 H 35" means finding the optimal multiplication sequence of the chain of matrices: A of size 32 by 35, B of size 35 by 24, ... H of size 34 by 35. -s VERTEX Use VERTEX as the starting vertex (for sbs, bfs, prim, and dijk) -i STEP Display step STEP as the initial image. -d FILENAME Dump the picture into FILENAME as a ps file and exit immediately without going into interactive mode. LICENSE
This code is distributed under the GNU General Public License AUTHOR
Chao-Kuei Hung ckhung AT ofset DOT org SEE ALSO
Please see /usr/share/doc/algotutor/doc/ for examples and the full set of documentations. perl v5.10.1 2010-07-05 ALGOTUTOR(1)
All times are GMT -4. The time now is 09:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy