Sponsored Content
Full Discussion: Please Help Me...
Special Forums UNIX and Linux Applications Please Help Me... Post 302414738 by mastercar on Tuesday 20th of April 2010 11:59:15 PM
Old 04-21-2010
Please Help Me...

Hi,

I am beginner using unix. I want you to help anybudy to show me the script to count data in directory....below this my directory....

Code:
/ebs/home/ebs_dba/nazrul/temp
MKZSX510>ll
total 0
-rw-r--r--   1 ebs_dba    users            0 Apr 19 16:50 blabla.edi
-rw-r--r--   1 ebs_dba    users            0 Apr 19 16:50 filename.std
-rw-r--r--   1 ebs_dba    users            0 Apr 19 16:50 first.txt
-rw-r--r--   1 ebs_dba    users            0 Apr 19 16:50 second.txt
-rw-r--r--   1 ebs_dba    users            0 Apr 19 16:50 whatever.bat


Last edited by pludi; 04-21-2010 at 01:57 AM..
 
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)
All times are GMT -4. The time now is 08:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy