08-05-2013
That space between block 2 and 3 hoses zaxxon's fine proposal... plus - I'm not sure what the FS is for.
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I use the grep command to take mutiple text files in a folder and make one huge text file out of them. I'm using Mac OS X and can not find a text tool that does it so I figured I'd resort to the BSD Unix CLI for a solution... there are 5,300 files that I want to write to one huge file so... (7 Replies)
Discussion started by: coppertone
7 Replies
2. Shell Programming and Scripting
Hi
I need to create multiple text files from onc text file on AIX. The data of text files is as below:
**********************************************
**********************************************
DBVERIFY: Release 10.2.0.4.0 - Production on Tue Nov 10 13:45:42 2009
Copyright (c) 1982,... (11 Replies)
Discussion started by: lodhi1978
11 Replies
3. Shell Programming and Scripting
I am attempting to insert multiple lines of text into a specific place in a text file based on the lines above or below it.
For example, Here is a portion of a zone file.
IN NS ns1.domain.tld.
IN NS ns2.domain.tld.
IN ... (2 Replies)
Discussion started by: cdn_humbucker
2 Replies
4. UNIX for Dummies Questions & Answers
Hello, I have a situation where I want to change a line of text in multiple files, but the problem is that I want to change the text to something unique for each file.
For example, let's say I have five files named bob.txt, joe.txt, john.txt, tom.txt, and zach.txt. Each of these files has a... (5 Replies)
Discussion started by: Scatterbrain26
5 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a space delimited text file with multiple columns 102 columns. I want to break it up into 100 files labelled 1.txt through 100.txt (n.txt). Each text file will contain the first two columns and in addition the nth column (that corresponds to n.txt). The third file will contain the... (1 Reply)
Discussion started by: evelibertine
1 Replies
6. Shell Programming and Scripting
Hi All,
I am trying to merge all the text files into one file using below snippet
cat /home/Temp/Test/Log/*.txt >> all.txt
But it seems it is not working.
I have multiple files like Output_ServerName1.txt, Output_ServreName2.txt
I want to merge each file into one single file and... (6 Replies)
Discussion started by: sharsour
6 Replies
7. Shell Programming and Scripting
Hi,
I need help to split a long text in a column which is separated by ; and i need to print them out in multiple columns. My input file is tab-delimited and has 11 columns as below:-
aRg02004 21452 asdfwf 21452 21452 4.6e-29 5e-29 -1 3 50 ffg|GGD|9009 14101.10 High class -node. ; ffg|GGD|969... (3 Replies)
Discussion started by: redse171
3 Replies
8. UNIX for Dummies Questions & Answers
I have a directory having a number of pdf files.
I want to convert all the files to text, stored in a single text file
The following creates multiple text files
ls *.pdf | xargs -n1 pdftotext (1 Reply)
Discussion started by: kristinu
1 Replies
9. Shell Programming and Scripting
Hi,
I have a text file (attached the sample). I have also, attached the way the way the files need to be split.
We get this file, that will either have 24 Jurisdictions, or will miss some and retain some.
Like in the attached sample file, there are only Jurisdictions 03,11,14,15, 20 and 30.... (3 Replies)
Discussion started by: ebsus
3 Replies
10. Shell Programming and Scripting
Hello,
I have a file called COMPLIST as follows that contains 4 digit numbers.0002
0003
0010
0013
0015
0016
0022
0023
0024
0025
0027
0030
0031
0032
0033
0035
0038
0041 (3 Replies)
Discussion started by: sph90457
3 Replies
LEARN ABOUT ULTRIX
malloc
malloc(3) Library Functions Manual malloc(3)
Name
malloc, free, realloc, calloc, alloca - memory allocator
Syntax
char *malloc(size)
unsigned size;
free(ptr)
void *ptr;
char *realloc(ptr, size)
void *ptr;
unsigned size;
char *calloc(nelem, elsize)
unsigned nelem, elsize;
char *alloca(size)
int size;
Description
The and subroutines provide a simple general-purpose memory allocation package. The subroutine returns a pointer to a block of at least
size bytes beginning on a word boundary.
The argument to is a pointer to a block previously allocated by This space is made available for further allocation, but its contents are
left undisturbed.
Needless to say, grave disorder will result if the space assigned by is overrun or if some random number is handed to
The subroutine maintains multiple lists of free blocks according to size, allocating space from the appropriate list. It calls to get more
memory from the system when there is no suitable space already free. For further information, see
The subroutine changes the size of the block pointed to by ptr to size bytes and returns a pointer to the (possibly moved) block. The con-
tents will be unchanged up to the lesser of the new and old sizes.
In order to be compatible with older versions, also works if ptr points to a block freed since the last call of or Sequences of and were
previously used to attempt storage compaction. This procedure is no longer recommended.
The subroutine allocates space for an array of nelem elements of size elsize. The space is initialized to zeros.
The subroutine allocates size bytes of space associated with the stack frame of the caller. This temporary space is available for reuse
when the caller returns. On MIPS machines, calling reclaims all available storage. On VAX machines, the space is automatically freed on
return.
Each of the allocation routines returns a pointer to space suitably aligned (after possible pointer coercion) for storage of any type of
object.
Restrictions
When returns 0, the block pointed to by ptr may be destroyed.
Currently, the allocator is unsuitable for direct use in a large virtual environment where many small blocks are kept, since it keeps all
allocated and freed blocks on a circular list. Just before more memory is allocated, all allocated and freed blocks are referenced.
Because the subroutine is machine dependent, its use should be avoided.
Diagnostics
The and subroutines return a null pointer (0) if there is no available memory or if the arena has been detectably corrupted by storing out-
side the bounds of a block.
RISC malloc(3)