Sponsored Content
Full Discussion: find and size flag
Top Forums Shell Programming and Scripting find and size flag Post 302287330 by quirkasaurus on Friday 13th of February 2009 10:27:17 AM
Old 02-13-2009
find uses a block size of 512.

From manual:

-size n[c] True if the file is n blocks long (512 bytes
per block). If n is followed by a c, the
size is in bytes.

apparantly, ls -s uses a block size of 1024.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find the file by size

Hi, Can somebody PLEASE help me. Suppose I want to find a file which has largest no of bytes in a particular directory, How do i do that. ls -s will give the size of Blocks. But I want the largest sized file and in bytes or KB OR MB. tHANKS IN advanvce. Bye Rooh :( (1 Reply)
Discussion started by: rooh
1 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 file size

My Question is ----------------- Assume you've a directory (i.e /home/test/) which contains n number of files, rename all the files which has byte count more than zero (0) with .bak extension. Write shell script to achieve this output, execute the same without using". / " in front of... (6 Replies)
Discussion started by: hgriva1
6 Replies

4. Shell Programming and Scripting

Find the size of a directory

Hi, I would really appreciate if you could help me with this. I have a directory structure like this :- /data Under data i have directories /data1 , /input_files , /output_files etc . Under these directories I have other subdirectories. What i am looking for is to find out the size of all... (5 Replies)
Discussion started by: divz
5 Replies

5. Linux

How to find out what is size of repository?

Hello, I need to know what is the size of centos 5 repository? Each centos 5 repository. 1) os 2) update 3) addons 4) centosplus 5) extras Here is the website link mirror.centos.org thanks (2 Replies)
Discussion started by: email-lalit
2 Replies

6. Shell Programming and Scripting

how do I find the size of.....

hi all, I am new to Php. Please tell me how do I find the size of an array? Thanks (1 Reply)
Discussion started by: davidtymon
1 Replies

7. Shell Programming and Scripting

Problems with find's -newer Flag

I am writing a script that looks in a reports directory, copies a specified script to a working folder, copies some data files into the working folder, runs the report, zips the new files, then uploads them. Right now to determine what files to zip (as I don't know how many report files there... (6 Replies)
Discussion started by: droppedonjapan
6 Replies

8. Shell Programming and Scripting

find with file size and show the size

Hi All... is the below command be modified in sucha way that i can get the file size along with the name and path of the file the below command only gives me the file location which are more than 100000k...but I want the exact size of the file also.. find / -name "*.*" -size +100000k ... (3 Replies)
Discussion started by: rpraharaj84
3 Replies

9. Shell Programming and Scripting

to find the size of directories

Hi, how to know the size of the files in the directory, exclusing the subfolder. ? i tried du -h du -sk du -k but its not giving.. (2 Replies)
Discussion started by: mail2sant
2 Replies

10. AIX

AIX flag to reduce size of shared file

I am using xlC (Version: 11.01.0000.0011). While build i am using "-g" to have debug information in build. there are many object files (>500) due to which resultant shared file (.so) will have huge size. I can't reduce optimization level. Is there any way or flag is present by using which i... (2 Replies)
Discussion started by: Abhi04
2 Replies
GETBSIZE(3)						   BSD Library Functions Manual 					       GETBSIZE(3)

NAME
getbsize -- get user block size LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <stdlib.h> char * getbsize(int *headerlenp, long *blocksizep); DESCRIPTION
The getbsize() function determines the user's preferred block size based on the value of the ``BLOCKSIZE'' environment variable; see environ(7) for details on its use and format. The getbsize() function returns a pointer to a null-terminated string describing the block size, something like ``1K-blocks''. The memory referenced by headerlenp is filled in with the length of the string (not including the terminating null). The memory referenced by blocksizep is filled in with block size, in bytes. If the user's block size is unreasonable, a warning message is written to standard error and the returned information reflects a block size of 512 bytes. SEE ALSO
df(1), du(1), ls(1), systat(1), environ(7) HISTORY
The getbsize() function first appeared in 4.4BSD. BSD
June 4, 1993 BSD
All times are GMT -4. The time now is 02:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy