06-11-2010
Thanks for all the help.
Kind regards.
Hemolymph
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Suppose content of my first file:
first line
second line
third line
How can i insert text between "first line" & "second Iline"
Any help?????/ (7 Replies)
Discussion started by: bishweshwar
7 Replies
2. UNIX for Dummies Questions & Answers
Hi everybody,
I've got two simples file1 like:
aaa aaa aaa
bbb bbb bbb
ccc ccc ccc
and file2 like:
111 111 111
222 222 222
333 333 333
I need to:
1) add a line say "new line" as the first line of the file
2)add a column from file2 (say column3) to file1; the new column should... (14 Replies)
Discussion started by: zajtat
14 Replies
3. Shell Programming and Scripting
Hi all,
I have a positional text file that comes from some source application. Before it is processed by destination application I have to add some header (suffix) to every record(line) in the file.
e.g.
Actual File
...............
AccountDetails
AcNO Name Amount
1234 John 26578
5678... (3 Replies)
Discussion started by: sharath160
3 Replies
4. Shell Programming and Scripting
75
103
131
133
138
183
197
221
232
234
248
256
286
342
368
389
463
499
524
538 (5 Replies)
Discussion started by: chrisjorg
5 Replies
5. UNIX Desktop Questions & Answers
Is there any way to add lines to the pattern space of sed?
I know a bit about the N flag, but am not able to use it to do what I want which is:
read a file n lines at a time. If I find a match I quit else move to the next line. e.g. if I am looking for the following three lines
Hello
How... (2 Replies)
Discussion started by: jawsnnn
2 Replies
6. UNIX for Dummies Questions & Answers
Dear all,
I have a file with two columns - the first column is increasing every 50, the second column is just count (e.g. 5). However, when count is zero, no line is present.
Sample:
1950 7
2000 14
2050 7
2100 13
2150 10
2200 9
2250 7
2300 8
2350 7... (1 Reply)
Discussion started by: TheTransporter
1 Replies
7. UNIX for Dummies Questions & Answers
Dear all,
I have a file with two columns - the first column is increasing every 50, the second column is just count (e.g. 5). However, when count is zero, no line is present.
Sample:
How can I change the file so as to include lines with zero count? e.g. in the previous file to put... (4 Replies)
Discussion started by: TheTransporter
4 Replies
8. Shell Programming and Scripting
Hi Experts,
Let us take a text file,say items.txt having the following data
jar
bottle
gum
tube
cereal
bag
I want to add the content of items.txt to another file say
#many lines not necessary
ingredients
#many line not necesary
ingredients
I want to append the data in... (3 Replies)
Discussion started by: Pradeep_1990
3 Replies
9. Shell Programming and Scripting
Hello,
I have a relatively large text file (25,000K) consisting of records of data. For each record, I need to create a new line based on what is already there.
Every record has a block that looks like,
M END
> <ID>
1
> <SOURCE>
KEGG
> <SOURCE_ID>
C00002
> <NAME>
ATP;... (4 Replies)
Discussion started by: LMHmedchem
4 Replies
10. UNIX for Beginners Questions & Answers
I have an array in an external file, "array.txt", which contains:
char *testarray={"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};I want to be able to add an element to this array, and have that element display, whenever I call it, without having to recompile... (29 Replies)
Discussion started by: ignatius
29 Replies
LEARN ABOUT XFREE86
phref
PHREF(3) MBK PHYSICAL STRUCTURE DEFINITIONS PHREF(3)
NAME
phref - mbk physical reference
DESCRIPTION
The phref structure is used to describe a reference belonging to a symbolic layout model, see phfig(3) for details. A reference allows to
name a point anywhere in a given model. It may then be seen as a name, and not anymore as a couple of coordinates. References are mostly
used for cell programming and multi-access connector representation.
The declarations needed to work on phref are available in the header file "/labo/include/mph402.h", where '402' is the actual mbk version.
The following C structure supports the description of the reference :
typedef struct phref {
struct phref *NEXT;
char *FIGNAME;
char *NAME;
long XREF,YREF;
struct ptype *USER;
} phref_list;
NEXT Pointer to the next reference in the list.
FIGNAME Kind of reference. Gives information about the possible uses of the object. Some FIGNAME are in use today :
"ref_con" for multi-access connectors
"ref_ref" for all other uses
NAME Name of the reference. The refence is identified by its name, so it should be unique at a given hierarchical level.
XREF, YREF Coordinates of the point beeing referenced.
USER Pointer to a ptype list, see ptype(3) for details, that is a general purpose pointer used to share informations on the
reference.
SEE ALSO
mbk(1), addphref(3), getphref(3), delphref(3), phfig(3), ptype(3).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM
/LIP6 October 1, 1997 PHREF(3)