11-20-2007
du total
Hi All
Can anyone help me with the following du querry. I am trying to achieve a total size for all the zipped files in a directory. Using du -k *.gz gets me a file by file list but no handy total at the bottom.
Thanks
Ed
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok, another fun hiccup in my UNIX learning curve. I am trying to count the number of occurrences of an IP address across multiple files named example.hits. I can extract the number of occurrences from the files individually but when you use grep -c with multiple files you get the output similar to... (5 Replies)
Discussion started by: MrAd
5 Replies
2. Shell Programming and Scripting
HPUX 11i v2 #!/bin/sh
Hi all.
I have a space delimited flat file of about 9000 lines. I would like to get a running total of field 3 to the variable $TOTAL. Field 3 can be formatted as listed....
$ 0.00
$2804.15
<$ 4.14> (negative)
Any ideas are most appreciated!!!! TIA!! (9 Replies)
Discussion started by: lyoncc
9 Replies
3. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies
4. Red Hat
Hi,
I have a strange issue where the total memory on the server is showing low.
At the moment 8 GB of memory is installed and only 3 GB is showing on the shell prompt. I am using the commands free -m and vmstat to check the memory. Please help me out in identifying the issue.
With regards... (3 Replies)
Discussion started by: shabu
3 Replies
5. Shell Programming and Scripting
How would I get a total of a wildcard of files from the 'du' command?
du -s *.pdf
Result:
736 11mens_bracket.pdf
64 2011_NIT_Bracket_3_13_11.pdf
80 Doing more with Less part1.pdf
1064 Doing more with Less part2.pdf
28 Parkview_1309_Garage.pdf
3964 statsheet-bracket-2011.pdf
Expected... (7 Replies)
Discussion started by: AlphaLexman
7 Replies
6. Shell Programming and Scripting
Input file
SFSQW 5192.56
HNRNPK 611.486
QEQW 1202.15
ASDR 568.627
QWET 6382.11
SFSQW 4386.3
HNRNPK 100
SFSQW 500
Desired output file
SFSQW 10078.86 3
QWET 6382.11 1
QEQW 1202.15 1
HNRNPK 711.49 2
ASDR 568.63 1
The way I tried: (2 Replies)
Discussion started by: patrick87
2 Replies
7. Shell Programming and Scripting
Input file
cll_0014_spp,84,uranus,disk33,45
cll_0014_spp,84,pluto,disk3,10
cll_0014_spp,450,pluto,disk4,1
cll_0014_spp,453,pluto,disk46,19
cll_0014_spp,84,neptune,disk34,60
cll_0014_spp,450,neptune,disk4,1
cll_0014_spp,68,neptune,disk54,59
cll_1234_spp,66,satrun,1000... (6 Replies)
Discussion started by: greycells
6 Replies
8. Solaris
i want to list Total HDD count in any soalris machine..can someone suggest some commands or combinations of commands (6 Replies)
Discussion started by: omkar.jadhav
6 Replies
9. Shell Programming and Scripting
Input
`0B0A RDF1+TDEV 45 BL_lmapm03
`0CE7 TDEV 59 BL_lmapm03
`0B09 RDF1+TDEV 70 BL_lmapm02
`0CE6 TDEV 59 BL_lmapm02
`0B08 RDF1+TDEV 70 BL_lmapm01
`0CE5 TDEV 59 BL_lmapm01
Output... (2 Replies)
Discussion started by: greycells
2 Replies
LEARN ABOUT DEBIAN
flow-expire
flow-expire(1) General Commands Manual flow-expire(1)
NAME
flow-expire -- Manage storage of flow file archives by expiring old data.
SYNOPSIS
flow-expire [-h] [-d debug_level] [-e expire_count] [-E expire_size] -w workdir
DESCRIPTION
The flow-expire utility will remove the oldest flow files in a directory based on either a count of files or space utilization. The direc-
tory is recursively searched for flow files. Files that do not have a flow-tools signature will be ignored. The internal timestamp is
used so backups or copies of the flow files that do not retain the original timestamp will not impact the operation of flow-expire. flow-
expire is typically used to manage storage in a distributed environment where flows are collected on a different server than they are
archived.
OPTIONS
-d debug_level
Enable debugging.
-e expire_count
Retain the maximum number of files so that the total file count is less than expire_count.
-E expire_size
Retain the maximum number of files so that the total storage is less than expire_size. The letters b,K,M,G can be used as multi-
pliers, ie 16 Megabytes is 16M.
-h Display help.
-w workdir
Work in workdir.
EXAMPLES
Remove the oldest flow files in /flows/krc4 until the total storage is less then 2 Gigabytes.
flow-expire -E2Gig -w /flows/krc4
Remove the oldest flow files in /flows/krc4 until the total number of files is less then 100.
flow-expire -e100 -w /flows/krc4
BUGS
Empty directories are not removed.
AUTHOR
Mark Fullmer maf@splintered.net
SEE ALSO
flow-tools(1)
flow-expire(1)