08-04-2008
I have a problem with the code
Hey!
There is a small problem with the code. The substring fetched by the code miss the last character i.e. if FILE2 has the following line -
bi|19526601|geb|AAL8700 74 92
The substring fetched starts from 74th position but it ends at 91 i.e. the output do not contain the character at position 92.
Please help!
Thanks,
smriti
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a flat file and need to count no of records in the file less the header and the trailer record.
I would appreciate any and all asistance
Thanks
Hadi Lalani (2 Replies)
Discussion started by: guiguy
2 Replies
2. Shell Programming and Scripting
hello mates.
please help me out once again.
i have a html file where i want to fetch out one value from the entire html-code
sample html code:
.....
<b>Amount:<b> 12345</div>
...
now i only want to fetch the 12345 from the html document.
how to i tell sed to get me the value from... (2 Replies)
Discussion started by: scarfake
2 Replies
3. Shell Programming and Scripting
Hi guys,
Please help me out in this problem. I have two files
FILE1
abc-23 : 4529675
cde-42 : 9824532
dge-91 : 1245367
gre-45 : 9824532
fgr-76 : 4529675
FILE2
4529675 : Gal Glu house-2-be
9824532 : cat mouse
1245367 : sirf surf-2-beta
where FILE2 is a static file with fixed... (5 Replies)
Discussion started by: smriti_shridhar
5 Replies
4. Shell Programming and Scripting
Hi
I am working on a script which needs to scan a sequential file and fetch the row where 2nd column = 'HUB'
Can any one help me with this...
Thanks (1 Reply)
Discussion started by: manmeet
1 Replies
5. Shell Programming and Scripting
Hi,
I have a task where i need to scan second column of seuential file and fetch first 3 digits of that column
For e.g. FOLLOWING IS THE SAMPLE FOR MY SEQUENTIAL FILE
AU_ID ACCT_NUM CRNCY_CDE
THHSBC001 30045678 THB
THHSBC001 10154267 THB
THHSBC001 ... (2 Replies)
Discussion started by: manmeet
2 Replies
6. UNIX for Dummies Questions & Answers
Hi everyone.
I am a newbie to Linux stuff. I have this kind of problem which couldn't solve alone. I have a text file with records separated by empty lines like this:
ID: 20
Name: X
Age: 19
ID: 21
Name: Z
ID: 22
Email: xxx@yahoo.com
Name: Y
Age: 19
I want to grep records that... (4 Replies)
Discussion started by: Atrisa
4 Replies
7. Shell Programming and Scripting
Hello All,
I am working on a script where I need to fetch the value from a log file and log file creates with different name but few thing are common
DEV_INFOMGT161_MULTI_PTC_BLD01.Stage_All_to_stp2perf1.042312114644.log
STP_12_02_01_00_RC01.Stage_stp-domain_to_stp2perf2.042312041739.log
... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
8. Shell Programming and Scripting
I have 2 files
"File 1" is delimited by ";" and "File 2" is delimited by "|".
File 1 below (3 record shown):
Doc1;03/01/2012;New York;6 Main Street;Mr. Smith 1;Mr. Jones
Doc2;03/01/2012;Syracuse;876 Broadway;John Davis;Barbara Lull
Doc3;03/01/2012;Buffalo;779 Old Windy Road;Charles... (2 Replies)
Discussion started by: vestport
2 Replies
9. Shell Programming and Scripting
Hi I am new to shell programming in unix
Please if I can provide help.
I have a file structure of a header record and "N" detail records.
The header record will be the total number of detail records
I need to split the file in 2:
One for the header
Another for all detail records
Could... (1 Reply)
Discussion started by: jamcogar
1 Replies
10. Shell Programming and Scripting
awk 'NR==FNR{arr;next} $0 in arr' /tmp/Data_mismatch.sh /prd/HK/ACCTCARD_20160115.txt
edit by bakunin: seems that one CODE-tag got lost somewhere. i corrected that, but please check your posts more carefully. Thank you. (5 Replies)
Discussion started by: suresh_target
5 Replies
LEARN ABOUT DEBIAN
xowish
xowish(1) XOTcl Applications xowish(1)
__________________________________________________________________________________________________________________________________________________
NAME
xowish - Graphical shell containing object-oriented scripting language XOTcl
SYNOPSIS
xowish ?fileName arg arg ...?
_________________________________________________________________
DESCRIPTION
xowish is a shell-like application that reads XOTcl commands from its standard input or from a file and evaluates them. In addition to xot-
clsh it provides graphical user interface support for TK widgets.
XOTcl (XOTcl, pronounced exotickle) is an object-oriented scripting language based on MIT's OTcl. It is intended as a value added replace-
ment for OTcl.
Scripting languages, like Tcl, are designed for glueing components together, provide features like dynamic extensibility and dynamic typing
with automatic conversion, that make them well suited for rapid application development.
The basic object system of XOTcl is adopted from OTcl. The object system enables us to define objects, classes, and meta-classes. Classes
are special objects with the purpose of managing other objects. ``Managing'' means that a class controls the creation and destruction of
its instances and that it contains a repository of methods accessible for the instances. Every object may be enhanced with object-specific
methods. XOTcl supports single and multiple inheritance. All relationships in XOTcl, including class and superclass relationships, are com-
pletely dynamic and can be introspected. Through method chaining without explicit naming of the intended method, ambiguities in name reso-
lution of methods are avoided. This way a shadowed method can be ``mixed into'' the execution of the current method.
XOTcl combines the ideas of scripting and object-orientation in a way that preserves the benefits of both of them. It is equipped with sev-
eral new language functionalities that help building and managing complex systems. We added the following support:
Dynamic Object Aggregations, to provide dynamic aggregations through nested namespaces (objects).
Nested Classes, to reduce the interference of independently developed program structures.
Assertions, to reduce the interface and the reliability problems caused by dynamic typing and, therefore, to ease the combination of many
components.
Meta-data, to enhance self-documentation of objects and classes.
Per-object mixins, as a means to improve flexibility of mixin methods by giving an object access to several different supplemental classes,
which may be changed dynamically.
Per-class mixins, as a means to improve flexibility of mixin methods to a class, all instances of the class have access to the mixed in
methods like for multiple inheritance, but without the need of intersection classes.
Filters as a means of abstractions over method invocations to implement large program structures, like design patterns.
Dynamic Component Loading XOTcl integrates the Tcl package loading with architectrual support for integration with object-oriented con-
structs. Moreover, it provides tracking/tracing of component loading.
KEYWORDS
argument, interpreter, prompt, script file, shell
XOWish xowish(1)