12-19-2019
You might discover that sizes considered by find are based on blocks and might not exactly match what you want.
If this is the case and you need it to be perfect, consider running find to get all the possible files then reading each with stat -c '%s' "${filename}" to get the size of the file in bytes.
Robin
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there a limit (255 chars?) on the command line??
I'm trying to copy some generated java & class files from one dir to another and ID the old & new versions by:
find . -name FFSFIXADminCallbackBean.java
I then do a copy and paste of the source and target -
$ cp -p source target
It... (7 Replies)
Discussion started by: kornshellmaven
7 Replies
2. Shell Programming and Scripting
is there a way to write a script and run with a cron job which archives all the *.log files into .tar.gz. :eek: (0 Replies)
Discussion started by: tintedwindow
0 Replies
3. UNIX for Dummies Questions & Answers
Hellp all,
if there is 3G memory in my Unix server I want to know if all the 3G space can be used by ong sigle process. As i know, in Windows, one process can only access at most 1G memory despite there is probably more than 1G memory is equipped. (1 Reply)
Discussion started by: cy163
1 Replies
4. Shell Programming and Scripting
Hi,
Your great help is very appreciated. I am looking for any Unix command or tool for doing Stress/Load test of php files at command prompt.
I tried torture.pl but it is not working after20 concurrent threads/users.
as it is very urgent for me..please suggest ur ideas asap.
thanks (5 Replies)
Discussion started by: Malleswari
5 Replies
5. Shell Programming and Scripting
Hi
I would just like to ask if there is a way for UNIX to ignore/overcome the 255 character limit of the command line?
My problem is that I have a really long line of text from a file (300+ bytes) which i have to "echo" and process by adding commands like "sed" to the end of the line, like... (5 Replies)
Discussion started by: agentgrecko
5 Replies
6. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies
8. Shell Programming and Scripting
I want to read the log file which was generate from other command . And the output was having multi line in log files for job name and server name. But i need to make all the logs on one line
Source file
07/15/2018 17:02:00 TRANSLOG_1700 Server0005_SQL ... (2 Replies)
Discussion started by: ranjancom2000
2 Replies
9. UNIX for Beginners Questions & Answers
Hi,
Can anyone help me for merge the following multi-line log which beginning with a " and line ending with ": into one line.
*****Original Log*****
087;2008-12-06;084403;"mc;;SYHLR6AP1D\LNZW;AD-703;1;12475;SYHLR6AP1B;1.1.1.1;0000000062;HGPDI:MSISDN=12345678,APNID=1,EQOSID=365;... (3 Replies)
Discussion started by: rajeshlinux2010
3 Replies
LEARN ABOUT OPENDARWIN
newfs_hfs
NEWFS_HFS(8) BSD System Manager's Manual NEWFS_HFS(8)
NAME
newfs_hfs -- construct a new HFS Plus file system
SYNOPSIS
newfs_hfs [-N] [-U uid] [-G gid] [-M mask] [-h | -w] [-s] [-b block-size] [-c clump-size-list] [-i first-cnid] [-J [journal-size]]
[-n node-size-list] [-v volume-name] special
DESCRIPTION
Newfs_hfs builds an HFS Plus file system on the specified special device. Before running newfs_hfs the disk should be partitioned using the
Disk Utility application or pdisk(8).
The file system default parameters are calculated based on the size of the disk partition. Typically the defaults are reasonable, however
newfs_hfs has several options to allow the defaults to be selectively overridden. The options are as follows:
-N Causes the file system parameters to be printed out without really creating the file system.
-U uid Set the owner of the file system's root directory to uid.
-G gid Set the group of the file system's root directory to gid.
-M mask Specify the access permissions mask for the file system's root directory.
-h Creates a legacy HFS format filesystem. This option is not recomended for file systems that will be primarily used with Mac OS X
or Darwin.
-s Creates a case-sensitive HFS Plus filesystem. By default a case-insensitive filesystem is created. Case-sensitive HFS Plus file
systems require a Mac OS X version of 10.3 (Darwin 7.0) or later.
-w Adds an HFS wrapper around the HFS Plus file system. This wrapper is required if the file system will be used to boot natively
into Mac OS 9.
-b block-size
The allocation block size of the file system. The default value is 4096.
-c clump-size-list
This specifies the clump and/or initial sizes, in allocation blocks, for the various metadata files. Clump sizes are specified
with the -c option followed by a comma separated list of the form arg=blocks.
Example: -c c=5000,e=500
a=blocks Set the attribute file clump size.
b=blocks Set the allocation bitmap file clump size.
c=blocks Set the catalog file clump size.
e=blocks Set the extent overflow file clump size.
-i first-cnid
This specifies the initial catalog node ID for user files and directories. The default value is 16.
-J [journal-size]
Creates a journaled HFS+ volume. The default journal size is 8MB. Appending an 'M' to the journal size implies megabytes (i.e.
64M is 64 megabytes). The maximum journal size is 512 megabytes.
-n node-size-list
This specifies the b-tree node sizes, in bytes, for the various b-tree files. Node sizes are specified with the -n option fol-
lowed by a comma separated list of the form arg=bytes. The node size must be a power of two and no larger than 32768 bytes.
Example: -n c=8192,e=4096
a=bytes Set the attribute b-tree node size.
c=bytes Set the catalog b-tree node size.
e=bytes Set the extent overflow b-tree node size.
-v volume-name
Volume name (file system name) in ascii or UTF-8 format.
SEE ALSO
mount(8), pdisk(8)
HISTORY
The newfs_hfs command appeared in Mac OS X Server 1.0 .
Mac OS X April 1, 2003 Mac OS X