First, you'll be getting a wrong result, as the GNU version of df (the only I know that supports the '-h' switch) uses the binary correct 1024 (=2^10) as the multiplicand, not 1000.
Second, if you want KiB, why not use the appropriate switch, and then sum it:
It's even portable
Hi,
I have one file stat.
Stat file contents are as follows: for example.
H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000
H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000
Now i... (1 Reply)
Dear Friends,
I wrote a script that get the size of specific files in a specific space directory. To get the total size I wrote a function in that script.
So far I am not convinced that function is working correctly.
Do you mind tell if there is anything wrong.
I am on SOLARIS (KSH)... (4 Replies)
How do I write a bash or ruby or perl or groovy script to print all the files in my directory tree that are one-to-two years old, the size of each file, and the sum of file sizes and then delete them?
I was using
find . -atime +365 -exec rm '{}' \;
but the problem was that I could not... (5 Replies)
Hi,
I wanted a script to find sum of files for a particular date, below is my script
ls -lrt *.req | nawk '$6 == "Aug"' | nawk '$7 == "1"'| awk '{sum = sum + $5} END {print sum}'
However, i get the error below
/usr/bin/ls: arg list too long
How do i fix that.
Many thanks before. (2 Replies)
Hi ,
I am trying to write something to find the size of particular type of files in a directory & it's subdirectory and sum the size .. These types of file are found at directory level or its subdirectories level ..
#!/bin/ksh
FNAME='.pdf'
S_PATH=/abc/def/xyz
find $S_PATH -exec ls -lad... (4 Replies)
Hello
first, truth been told, I'm not even close to be advanced user. I'm posting here because maybe my question is complicated enough to need your expert help
I need to use awk (or nawk - I don't have gawk) to validate some files by computing the total sum for a large numeric variable.
It... (1 Reply)
Hi,
Can someone help me to get the complete files size (sum) over a perod time (1 day,2days)in a directory.
eg:
Directory :ABC
I have a1,a2,a3 files are created in last 24 hours so I need to get the some of all these files.
I am using the below find command but its giving me the... (1 Reply)
Hello,
I need help. I working a a script that will get back directory size.
I am on linux.
I am using du -sk to get the size of directories.
But, as the script is launch under nagios, i need to find a work aound to get rid of time out issue due to the large amount of files in one of... (1 Reply)
Hey guys,
I have a python script that I call with this line:
python mypythonscript.py >> results.csv &The problem is that the redirection from the stdout to the file results.csv only writes 4096 kbyte blocks.
So if i kill this process with
kill the last kbytes that the script produce will... (6 Replies)
unzip -v gives CRC info of each file in a zip(in my case .EAR) file.
# unzip -v my-application.ear
Archive: my-application.ear
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
197981 Defl:N 183708 7%... (1 Reply)
Discussion started by: kchinnam
1 Replies
LEARN ABOUT DEBIAN
mkfatimage16
MKFATIMAGE16(1) Make HDIMAGE for DOSEMU MKFATIMAGE16(1)NAME
mkfatimage16 - generate a virtual drive image suitable for DOSEMU
SYNOPSIS
mkfatimage16 [ -b bsectfile ] [{ -t tracks | -k Kbytes }] [ -l volume-label ] [ -f outfile ] [ -p ] [ file... ]
DESCRIPTION
mkfatimage16 creates a hdimage file for DOSEMU that is pre-loaded with the files specified on the command line. The output is either writ-
ten to stdout (hence do not forget to append " > hdimagefile", else you will see garbage on the screen) or to the file specified by the -f
option. For the latter you may also use option -p in order to force padding up to the given size. This padding will result in so-called
holes on an ext2-FS, hence the actual disk usage will not be greater. The file created by mkfatimage16 then can be used as a virtual
drive, when defined in /etc/dosemu.conf. As long as -k is not given, the number of heads is always 4 and you have 17 sectors per head else
it is adjusted accordingly. To vary the size, you may either use the -t option or specify the total amount of Kbytes via -k option.
All files given behind the options will be copied onto the hdimage. In addition a DOSEMU suitable master boot record (MBR) is established
and via option -b you may specify a boot sector that gets inserted as first sector of the partition. To later access the hdimage outside of
DOSEMU you should use mtools (/etc/mtools.conf parameters partition=1 and offset=128).
OPTIONS -b file
Insert the first 512 bytes of file into the bootsector of the partition.
-t num Make the virtual disk have num tracks. This is the one way to define the size of the disk.
-k Kbytes
Make the virtual disk be Kbytes in size. Using -t and -k are mutual exclusive.
-l label
insert label as volume label for the disk.
-f outfile
The hdimage is written to outfile instead of stdout
-p Pad the hdimage with zero up to the total size given by -t or -k (only in conjunction with -f).
AUTHOR
Pasi Eronen (pe@iki.fi) and Peter Wainwright.
BUGS
This program doesn't support name mangling and does very little checking for non-DOS filenames. Disk full condition isn't detected (and
probably causes erratic behaviour). Duplicate files aren't detected.
AVAILABILITY
Comes with DOSEMU
SEE ALSO dosemu(1), xdosemu(1), mtools(1)Version ALPHA 0.98 September, 1998 MKFATIMAGE16(1)