Hi ALL
I have small script that find 777 dir now i want to count these directories,Keep in mind there are many directories.
This IS my code below.
#!/bin/bash
check=/var/www/html
find $check -type d -perm 777 | while read DIR
do
... (2 Replies)
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)
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 All!
I would like to have a script that will count the number of files at the top of the hour of soome directories and mail the results to me.
I was thinking on :
a=`/directory/subdirectory/ | wc -l`
echo "/directory/subdirectory :$a"
b=`/another_dir/subdir/ | wc -l`
echo... (12 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)
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. This is for Solaris. Please help. (1 Reply)
Discussion started by: blinkingdan
1 Replies
LEARN ABOUT V7
dcheck
DCHECK(1M)DCHECK(1M)NAME
dcheck - file system directory consistency check
SYNOPSIS
dcheck [ -i numbers ] [ filesystem ]
DESCRIPTION
Dcheck reads the directories in a file system and compares the link-count in each i-node with the number of directory entries by which it
is referenced. If the file system is not specified, a set of default file systems is checked.
The -i flag is followed by a list of i-numbers; when one of those i-numbers turns up in a directory, the number, the i-number of the direc-
tory, and the name of the entry are reported.
The program is fastest if the raw version of the special file is used, since the i-list is read in large chunks.
FILES
Default file systems vary with installation.
SEE ALSO icheck(1), filsys(5), clri(1), ncheck(1)DIAGNOSTICS
When a file turns up for which the link-count and the number of directory entries disagree, the relevant facts are reported. Allocated
files which have 0 link-count and no entries are also listed. The only dangerous situation occurs when there are more entries than links;
if entries are removed, so the link-count drops to 0, the remaining entries point to thin air. They should be removed. When there are
more links than entries, or there is an allocated file with neither links nor entries, some disk space may be lost but the situation will
not degenerate.
BUGS
Since dcheck is inherently two-pass in nature, extraneous diagnostics may be produced if applied to active file systems.
DCHECK(1M)