02-28-2011
There is:
find. Check the -type and -xdev switches.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: aliahsan81
2 Replies
2. Solaris
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)
Discussion started by: oniondosa
6 Replies
3. Shell Programming and Scripting
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)
Discussion started by: beefeater267
1 Replies
4. Shell Programming and Scripting
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)
Discussion started by: unx100
2 Replies
5. UNIX for Dummies Questions & Answers
hi all,
i want to count no of files and directories in current directory , seperately... (3 Replies)
Discussion started by: sonu_pal
3 Replies
6. Shell Programming and Scripting
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)
Discussion started by: fretagi
12 Replies
7. Shell Programming and Scripting
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)
Discussion started by: scribling
10 Replies
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
hi All, Any one answer my requirement.
I have source location
src_dir="/home/oracle/arun/IRMS-CM"
My Target location
dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct"
my source text files check with below example.text file content
$fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies
LEARN ABOUT CENTOS
termio
TERMIO(7) Linux Programmer's Manual TERMIO(7)
NAME
termio - System V terminal driver interface
DESCRIPTION
termio is the name of the old System V terminal driver interface. This interface defined a termio structure used to store terminal set-
tings, and a range of ioctl(2) operations to get and set terminal attributes.
The termio interface is now obsolete: POSIX.1-1990 standardized a modified version of this interface, under the name termios. The POSIX.1
data structure differs slightly from the System V version, and POSIX.1 defined a suite of functions to replace the various ioctl(2) opera-
tions that existed in System V. (This was done because ioctl(2) was unstandardized, and its variadic third argument does not allow argu-
ment type checking.)
If you're looking for page called "termio", then you can probably find most of the information that you seek in either termios(3) or
tty_ioctl(4).
SEE ALSO
reset(1), setterm(1), stty(1), termios(3), tty(4), tty_ioctl(4)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2013-02-12 TERMIO(7)