How to insert data befor some field in a row of data depending up on values in row
Hi
I need to do some thing like "find and insert before that " in a file which contains many records. This will be clear with the following example.
The original data record should be some thing like this
but due to some system errors the file generated has got one missing information and it looks like
both has got 248 charaters length. but in the second record one data is missing i.e 441
i need to insert 441 exactly in that position if 442 is available as next data.
its some thing like case statements...
i will be having different values instead of 442 and their corresponding previous position data
How to go about this...any one help me out...
Am having lot of error files like this to be treated, hence can i do anything like upload in a DB and insert data based on the values in the row at the position i told before (442)
I have a datafile having structure like
col1,col2,col3
col1,col2,col3,col4,col5
col1,col2,col3,col4,col5
.....
Can we take only first row of values from datafile and put into respective variable.
How col1 can be captured in a variable called v_col1 from unix script.
like first row(only)... (1 Reply)
Guys -- I am noob and I am really strugging on this one. I cant even write the pseudo code for it. I have a file that spits values in individual rows as such:
file:
user date type size
joe 2005-25-09 log 1
joe 2005-25-09 snd 10
joe 2005-25-09 rcd 12
joe 2005-24-09 log 2
joe... (1 Reply)
Hello,
I have an input file like the following:
11_3_4
2_1_35
3_15__
_16989
Where '_' is a space. The data is in a table. Is there a way for the program to prompt the user for x1,y1 and x2,y2, where x1,y1 is the desired number (for example x=6 y=4 is a value of 4) and move to a desired spot... (2 Replies)
Hello,
I want to add a new row to a file to insert data without deleting the previous data there.
Example:
file
a
b
c
d
Output
a
b
newtext
c (6 Replies)
Sorry if I repost my question in this section, but I'm really in a hurry since I have to finish my work... :(
Dear community,
I have a table with two rows like:
Row1 Row2
======= =======
7,3 text 1
1,3 text 2
1,2,3 blabla
What i need to do is add/copy... (2 Replies)
Hi ALL,
We have requirement in a file, i have multiple rows.
Example below:
Input file rows
01,1,102319,0,0,70,26,U,1,331,000000113200000011920000001212
01,1,102319,0,1,80,20,U,1,241,00000059420000006021
I need my output file should be as mentioned below. Last field should split for... (4 Replies)
I have the following script that will average the last two fields of each row, but im not sure how to include the 3rd field of the following row.
An example of the analysis that I need to perform from the input - (66.61+58.01+54.16)/3
awk '{sum=cnt=0; for (i=13;i<=NF;i++) { sum+=$i; cnt++... (1 Reply)
Discussion started by: ncwxpanther
1 Replies
LEARN ABOUT REDHAT
tangle
TANGLE(1) General Commands Manual TANGLE(1)NAME
tangle - translate WEB to Pascal
SYNOPSIS
tangle webfile[.web] [ changefile[.ch] ]
DESCRIPTION
This manual page is not meant to be exhaustive. The complete documentation for this version of TeX can be found in the info file or manual
Web2C: A TeX implementation.
The tangle program converts a Web source document into a Pascal program that may be compiled in the usual way with the on-line Pascal com-
piler (e.g., pc(1)). The output file is all in lower case and packed into lines of 72 characters or less, with the only concession to
readability being the termination of lines at semicolons when this can be done conveniently.
The Web language allows you to prepare a single document containing all the information that is needed both to produce a compilable Pascal
program and to produce a well-formatted document describing the program in as much detail as the writer may desire. The user of Web must
be familiar with both TeX and Pascal. Web also provides a relatively simple, although adequate, macro facility that permits a Pascal pro-
gram to be written in small easily-understood modules.
The command line should have either one or two names on it. The first is taken as the Web file (and .web is added if there is no exten-
sion). If there is another name, it is a change file (and .ch is added if there is no extension). The change file overrides parts of the
Web file, as described in the Web system documentation.
The output files are a Pascal file and a string pool file, whose names are formed by adding .p and .pool respectively to the root of the
Web file name.
SEE ALSO pc(1), pxp(1) (for formatting tangle output when debugging), tex(1).
Donald E. Knuth, The Web System of Structured Documentation.
Donald E. Knuth, Literate Programming, Computer Journal 27, 97-111, 1984.
Wayne Sewell, Weaving a Program, Van Nostrand Reinhold, 1989, ISBN 0-442-31946-0.
Donald E. Knuth, TeX: The Program (Volume B of Computers and Typesetting), Addison-Wesley, 1986, ISBN 0-201-13437-3.
Donald E. Knuth, Metafont: The Program (Volume D of Computers and Typesetting), Addison-Wesley, 1986, ISBN 0-201-13438-1.
These last two are by far the largest extant examples of Web programs.
There is an active Internet electronic mail discussion list on the subject of literate programming; send a subscription request to litprog-
request@shsu.edu to join.
AUTHORS
Web was designed by Donald E. Knuth, based on an earlier system called DOC (implemented by Ignacio Zabala). The tangle and weave programs
are themselves written in Web. The system was originally ported to Unix at Stanford by Howard Trickey, and at Cornell by Pavel Curtis.
Web2C 7.3.1 12 February 1993 TANGLE(1)