Hello,
I am looking for a way to get the TOTAL COUNT of the files present in all directories(sub directories) under the root directory..The files can be of any type viz. txt, doc, html, wav, jpeg etc. If it has an extension, it has to be counted..
I want to run the script from the root directory.... (6 Replies)
Hey,
I'm very new to AWK and am trying to write a script that counts the number of files in all subdirectories. So, basically, my root has many subdirectories, and each subdirectory has many files.
How can I get the total count? I haven't been able to figure out how to loop through the... (1 Reply)
Hi,
I have a requirement to find out the count of files in directories. I can do this very well by goind to each directory and then ls -lrt | wc -l. But I need to do it for hundreds of directories/sub-directories.
I tried with this -
for i in `ls -F | grep '/$'`; do `echo "$i"`| ls -lrt... (2 Replies)
how to count the total number of lines of all the files under a directory using perl script..
I mean if I have 10 files under a directory then I want to count the total number of lines of all the 10 files contain. Please help me in writing a perl script on this. (5 Replies)
Hi Experts,
I want to know the count of specific word in a file. I have almost 600+ files.
So I want to loop thru each file and get the count of the specific word.
Please help me on achieving this...
Many thanks (2 Replies)
Hi
I have a jfs2 filesystem named /software in my aix 5.3 box.
Please note that there are a lot of subdirectories under /software?
I need to know the count of how many total files and directories are present under that mount point /software ?
For example if by some commands we find that there... (3 Replies)
Hi!
I just want to count number of files in a directory, and write to new text file, with number of files and their name
output should look like this,,
assume that below one is a new file created by script
Number of files in directory = 25
1. a.txt
2. abc.txt
3. asd.dat... (20 Replies)
I'm trying to make a script that will list all directories under a selection as well as the number of files in each.
I cannot get it to work under a symbolic link.
The file structure is:
XXX_20131127_001
dir01 (sym link)
2404x912
file.0000.xxx to
... (10 Replies)
Hi All,
Everyday we will receive 33 files in our source directory(/prd/pk) with the current date. Once our jobs are completed all the 33 files immediately will be moved to backup folder (/prd/pk/backup).
Now, I need to check between source file directory (/prd/pdk) and backup file directory... (3 Replies)
Discussion started by: suresh_target
3 Replies
LEARN ABOUT ULTRIX
uuclean
uuclean(8c)uuclean(8c)Name
uuclean - uucp spool directory clean-up
Syntax
uuclean -p[pre] [ options ... ]
Description
The command scans the spool directory for files with the specified prefix and deletes all those which are older than the specified number
of hours.
The -ppre argument causes the command to scan for files with pre as the file prefix. You can specify up to 10 arguments. A without any
pre following causes all files older than the specified time to be deleted. You must specify at least one argument.
Options-ntime Delete all files whose age is more than time, in hours, (default is 72 hours) and that have the specified pre as their file
prefix.
-m Send mail to the owner of the file when it is deleted.
-ssystem Delete files in all directories that are subdirectories of the per system spool directory that exists for system. If ALL is
specified, then all system directories are processed. ALL is the default.
-ddirectory Delete files that reside in the named directory. The default directory is The option over rides the option.
The command typically starts the program. In earlier versions, a deleted work file (C.file) would result in mail to the owner of the work
file, regardless of the option. Now, notification of deleted work files is sent to the user ID "uucp". If the option is used, mail is
also sent to the owner.
Examples
Here are some example command lines:
# uuclean -pLTMP. -pLOG. -n4 -d/usr/spool/uucp
# uuclean -d/usr/spool/uucp/.XQTDIR -p -n
# uuclean -smarkie -p -n84
The third example deletes all files for the system that are older than 84 hours.
Files
Directory with commands used by uuclean internally
See Alsouucp(1c), uux(1c), cron(8)uuclean(8c)