03-21-2008
1. Not sure why they are using 1023, quite frankly.
2. If you have GB of files, divide x (or tot in my example) by 1073741824
3. %4.2f\n:
% is prefix to a format code
4 means four places to left of decimal
. format number with a decimal
2 means two places to right of decimal
f means end of format code
\n newline
10 More Discussions You Might Find Interesting
1. HP-UX
HI ALL,
i am a beginner in unix world.
can anyone please tell me the way to find total size taken by each directory (including size of all subdirectories and files) present under /var.
e.g what is space occupied by /var/adm , /var/admin etc.
its a simple question but still i dont know the... (2 Replies)
Discussion started by: jyoti
2 Replies
2. Solaris
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
Hi,
I am trying to get the total file size for certain files per directory.
I am using
find /DirectoryPath -name '*.dta' -exec ls -l {} \; | awk '{ print $NF ": " $5 }' > /users/cergun/My\ Documents/dtafiles.txt
but this lists all the files in the directories.
I need the total... (9 Replies)
Discussion started by: cergun
9 Replies
4. Shell Programming and Scripting
I have a directory that contains files like
aaa-2010-05-30.txt
ddd-2010-05-30.txt
www-2010-05-30.txt
i have total 2000 files, i need to calculate total size of files for *2010-05-30.txt like
aaa-2010-05-30.txt 200MB
ddd-2010-05-30.txt 10GB
www-2010-05-30.txt 4GB
Total 14.2 GB... (5 Replies)
Discussion started by: learnbash
5 Replies
5. UNIX for Dummies Questions & Answers
I am trying to get the total size of the folder using the below command
but its not working. any ideas?
du -bc <foldername>/|grep total|tr -s " "|cut -d" " -f1
the output i am getting is
78996 total
but i just want it to be as
78996
please help (3 Replies)
Discussion started by: classic
3 Replies
6. Linux
Hi All,
I am writing a block driver for a 2GB SD card where i get the total amount of data per request as follows:
struct request *req;
uint card_addr,total_bytes;
struct request_queue *rq = BlkDev->queue;
req = elv_next_request(rq);
..
..
card_addr = req->sector*512;... (1 Reply)
Discussion started by: amio
1 Replies
7. Shell Programming and Scripting
Hello :
I need some help in writing a ksh script which will find a particular directory in all the file systems in a server and finally report the total size of the direcotry in all the file systems.
Some thing like this..
find /u*/app/oracle -type d -name "product" -prune
and then... (1 Reply)
Discussion started by: Sam1974
1 Replies
8. Solaris
:mad:i need command to know the total size of project in my system by Giga bit
i try
#du -s /*/projectname
but i need total size for this project by G.B
can you help me (6 Replies)
Discussion started by: ayman
6 Replies
9. Shell Programming and Scripting
I have list of file names in filename.txt
below is file format
>>File1
_________________________
01~12345~Y~YES~aaaaa~can
02~23456~N~NO~bbbbb~can
.
.
.
99~23__________________________
Need to find total count from each file depending on specific string and add them to have total count... (17 Replies)
Discussion started by: santoshdrkr
17 Replies
10. Shell Programming and Scripting
I have file listed like below
-rw-r--r--+ 1 test test 17M Nov 26 14:43 test1.gz
-rw-r--r--+ 1 test test 0 Nov 26 14:44 test2.gz
-rw-r--r--+ 1 test test 0 Nov 27 10:41 test3.gz
-rw-r--r--+ 1 test test 244K Nov 27 10:41 test4.gz
-rw-r--r--+ 1 test test 17M Nov 27 10:41 test5.gz
I... (5 Replies)
Discussion started by: krish2014
5 Replies
LEARN ABOUT OSF1
stl_ctrl
stl_ctrl(4) Kernel Interfaces Manual stl_ctrl(4)
NAME
stl_ctrl - Software subset control files
DESCRIPTION
Each software subset that is distributed for the setld command has an associated control file. This control file is created by the kits(1)
utility. The control file's name consists of the subset name with the string .ctrl for a suffix. The control file contains attribute
information for the subset. Once the subset has been installed on a system, the control file is placed in the usr/.smdb. directory.
The attribute definitions in the file are stored one per line as attribute name/value pairs separated by equals signs (=). The attributes
are:
NAME The name (text description) of the product of which this subset is a component, as given by the NAME attribute defined in the prod-
uct attributes section of the key file.
DESC The text description of the subset, as given in the subset descriptor for this subset in the key file.
ROOTSIZE
The size in bytes that are used on the root file system.
USRSIZE
The size in bytes that are used on the usr file system.
VARSIZE
The size in bytes that are used on the ar file system.
MTLOC Two integers separated by a colon (:). These integers are used by the setld utility to find the subset on tape media. The first
number specifies the volume in the product tape set; the second is the location within that volume. The values established for this
attribute by the kits utility are placeholders. The actual values are generated as the subset is being written to tape by the gen-
tapes command.
DEPS The dependency list for this subset.
FLAGS The value specified by the flags field of this subset's record in the key file.
EXAMPLES
The following example shows the contents of OATDCB100.ctrl, the control file for a hypothetical subset: NAME='Orpheus Authoring Tools OAT-
DCB100' DESC='Document Building Tools' ROOTSIZE=12352 USRSIZE=43941 VARSIZE=8704 NVOLS=1:2 MTLOC=1:1 DEPS="." FLAGS=0
RELATED INFORMATION
gendisk(1), gentapes(1), kits(1), stl_key(4), setld(8)
Guide to Preparing Product Kits delim off
stl_ctrl(4)