Sponsored Content
Top Forums Shell Programming and Scripting Find duplicate files by file size Post 302510177 by alister on Friday 1st of April 2011 05:33:27 PM
Old 04-01-2011
You probably don't want to use du for this either. du returns the space allocated for a file, not the size of a file.

Regards,
Alister
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to find duplicate files with find ?

hello all I like to make search on files , and the result need to be the files that are duplicated? (8 Replies)
Discussion started by: umen
8 Replies

2. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

3. Shell Programming and Scripting

Find Duplicate files, not by name

I have a directory with images: -rw-r--r-- 1 root root 26216 Mar 19 21:00 020109.210001.jpg -rw-r--r-- 1 root root 21760 Mar 19 21:15 020109.211502.jpg -rw-r--r-- 1 root root 23144 Mar 19 21:30 020109.213002.jpg -rw-r--r-- 1 root root 31350 Mar 20 00:45 020109.004501.jpg -rw-r--r-- 1 root... (2 Replies)
Discussion started by: Ikon
2 Replies

4. Shell Programming and Scripting

Find duplicate files

What utility do you recommend for simply finding all duplicate files among all files? (4 Replies)
Discussion started by: kiasas
4 Replies

5. Shell Programming and Scripting

Find file size difference in two files using awk

Hi, Could anyone help me to solve this problem? I have two files "f1" and "f2" having 2 fields in each, a) file size and b) file name. The data are almost same in both the files except for few and new additional lines. Now, I have to find out and print the output as, the difference in the... (3 Replies)
Discussion started by: royalibrahim
3 Replies

6. Shell Programming and Scripting

Remove duplicate lines from a 50 MB file size

hi, Please help me to write a command to delete duplicate lines from a file. And the size of file is 50 MB. How to remove duplicate lins from such a big file. (6 Replies)
Discussion started by: vsachan
6 Replies

7. Shell Programming and Scripting

find duplicate string in many different files

I have more than 100 files like this: SVEAVLTGPYGYT 2 SVEGNFEETQY 10 SVELGQGYEQY 28 SVERTGTGYT 6 SVGLADYNEQF 21 SVGQGYEQY 32 SVKTVLGYEQF 2 SVNNEQF 12 SVRDGLTNSPLH 3 SVRRDREGLEQF 11 SVRTSGSYEQY 17 SVSVSGSPLQETQY 78 SVVHSTSPEAF 59 SVVPGNGYT 75 (4 Replies)
Discussion started by: xshang
4 Replies

8. Shell Programming and Scripting

Find duplicate files but with different extensions

Hi ! I wonder if anyone can help on this : I have a directory: /xyz that has the following files: chsLog.107.20130603.gz chsLog.115.20130603 chsLog.111.20130603.gz chsLog.107.20130603 chsLog.115.20130603.gz As you ca see there are two files that are the same but only with a minor... (10 Replies)
Discussion started by: fretagi
10 Replies

9. Shell Programming and Scripting

Find duplicate rows between files

Hi champs, I have one of the requirement, where I need to compare two files line by line and ignore duplicates. Note, I hav files in sorted order. I have tried using the comm command, but its not working for my scenario. Input file1 srv1..development..employee..empname,empid,empdesg... (1 Reply)
Discussion started by: Selva_2507
1 Replies

10. Shell Programming and Scripting

List duplicate files based on Name and size

Hello, I have a huge directory (with millions of files) and need to find out duplicates based on BOTH file name and File size. I know fdupes but it calculates MD5 which is very time-consuming and especially it takes forever as I have millions of files. Can anyone please suggest a script or... (7 Replies)
Discussion started by: prvnrk
7 Replies
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)
All times are GMT -4. The time now is 04:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy