Hello,
I need to truncate a large file without deleting and touching it again.
i tried the below commands but no use because of the huge file size
cat <<! > errors
and
echo > errors
Could someone please help.
Thanks,
Sateesh (1 Reply)
I have one file which first line is blank and second line has some data.
$cat filename
output:
30-MAY-07
I want to store 30-MAY-07 value in one variable.
for that I wrote
var="`head -2 filename`"
It will give that result but I want to truncate the first line which is blank.
plz help. (2 Replies)
I am trying to concatenate 2 files, but before concatenation, I would like to strip off the final character from the first file.
The final character is a form feed (ascii 012 / hex 0C) and there will be an unknown number of these characters in the file. It is only the very last one which I want... (1 Reply)
I have a xml file which contains image tag as follows:
<image><img src="wstc_0007_0007_0_img0001.jpg" width="351" height="450" alt="This is the cover page. Brazil • Japan • Korea • Mexico • Singapore • Spain" type="photograph" orient="portrait"/></image>
... (5 Replies)
Hi all,
i have a file and i want that after 6th slash "/" in each line of the file the contents gets truncated.
Can anyone tell me how to do that !!
thanks in advance
One more thing how can i change the size of output buffer of console,
as i had very long output and its not... (2 Replies)
Folder of e-mails in maildir format had been corrupted. Typical file name is 1246281161.6777.m21JH:2,S . The " :2,S prevents " copying to another device. How can I simply remove the last four characters? (2 Replies)
hi,
I have an data from file where it has
20110904 234516 <<hdd-10#console|0c.57,passed,5,28,READ,0,20822392,8,5,4,0,40,0,-1,0,29909,25000,835,3.3,0,0,0,0,implied,0,0,2011/9/5-2:3:17,2011/9/5-2:3:47,X292_0F15,TAP ,NQ09,J40LTG\r\r\n
I want to remove characters till #console| i.e want... (1 Reply)
Hello:
I have a large file which contains lines like the following:
1/t123ab, &Xx:1:1234:12345:123456@ABCDEFG... at -$100.00%
/t is a tab, spaces are as indicated
the string "&Xx:1:1234:12345:123456$ABCDEFG..." has a slightly variable number of numbers and letters, but it always starts... (9 Replies)
Discussion started by: Tectona
9 Replies
LEARN ABOUT OPENSOLARIS
genlib_copy_up_seg
GENLIB_COPY_UP_SEG.3(October 1, 1997) GENLIB_COPY_UP_SEG.3(October 1, 1997)
NAME
GENLIB_COPY_UP_SEG - copy a physical segment from an instance in the current figure
SYNOPSYS
#include <genlib.h>
void GENLIB_COPY_UP_SEG(oldname, insname, newname)
char *oldname, *insname, *newname;
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
PARAMETERS
oldname Name of the segment in the instance
insname Name of the instance in the which the segment is to be searched for
newname Name to be given to the segment in the current figure
DESCRIPTION
COPY_UP_SEG adds a segment in the current layout cell. All the segment's attributes are copied from the first found segment called oldname
in the instance insname. The new segment is given the name newname. The main purpose of this function is to rename a segment, so it can be
used later, when extracting a layout.
ERRORS
"GENLIB_COPY_UP_SEG impossible : missing GENLIB_DEF_PHFIG"
No figure has been yet specified by a call to DEF_PHFIG. So it isn't possible to place a segment inside it. you must call DEF_PHFIG
before any other layout action.
"illegal getphins : instance insname does not exist"
The instance called insname does not currently belong to the figure.
"GENLIB_COPY_UP_SEG impossible : segment segname does not exist"
The segment segname does not exist in the model of the instance insname.
EXAMPLE
#include <genlib.h>
main()
{
/* Create a figure to work on */
GENLIB_DEF_PHFIG("cell");
GENLIB_PLACE("z2l_y", "r1", NOSYM, 23L, 54L);
/* Put a segment */
GENLIB_COPY_UP_SEG("mux0_s", "r1", "out_s");
/* Save that on disk */
GENLIB_SAVE_PHFIG();
}
SEE ALSO genlib(1), GENLIB_DEF_PHFIG(3), GENLIB_SAVE_PHFIG(3), GENLIB_PHSEG(3), GENLIB_THRU_H(3), GENLIB_THRU_CON_H(3), GENLIB_THRU_V(3), GEN-
LIB_THRU_CON_V(3), GENLIB_WIRE1(3), GENLIB_WIRE2(3), GENLIB_WIRE3(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.
PROCEDURAL GENERATION LANGUAGE ASIM/LIP6 GENLIB_COPY_UP_SEG.3(October 1, 1997)