10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a folder named test/ and under that I have multiple directories and in each of the directory I have multiple log files. I want to know how many files exists under each sub directory.
test
|--quanrantine
|--logfile1
|--logfile2
|--spooling
|--logfile1
... (4 Replies)
Discussion started by: ravikirankethe
4 Replies
2. Shell Programming and Scripting
Hi All!
I need to have a script that counts the number of files arriving in a landing directory, them some app pick these files to be processed and load to a DB. But this process is so fast that I am not able to count all the files arriving on a landing directory.
Please can you help?
My... (6 Replies)
Discussion started by: fretagi
6 Replies
3. Shell Programming and Scripting
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)
Discussion started by: Akshay Hegde
20 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a large number of subdirectories (>200), and in each of these directories there is a file with a name like "opp1234.dat".
I'd like to know how I could change the names of these files to say "out.dat" in all these subdirectories in one go.
Thanks! (5 Replies)
Discussion started by: lost.identity
5 Replies
5. UNIX for Dummies Questions & Answers
Hi all...
I have a directory called dbrn. This directory contains an unknown number of subdirectories which in turn contain an unknown number of files.
What I want to know is:
How many files with extention .ABC can be found in /dbrn across all subdirecties, and what is the total size for... (9 Replies)
Discussion started by: Beun
9 Replies
6. Shell Programming and Scripting
1) I need a shell code to count the number of files ( without directories or sub-directories ) in a directory given as arguments I tried this code but it didn't work , maybe I tried the wrong one:
numOfFiles=`find $1 -type f -maxdepth 1 | wc -l`
I found it in another thread in this site..
... (17 Replies)
Discussion started by: jack1985
17 Replies
7. UNIX for Dummies Questions & Answers
Dear All
i need to find to total number of the files and subdirectories under /software
i issue this command
find /software/* -print | wc -l
but i need another command to know how many files and subdirectories . (3 Replies)
Discussion started by: thecobra151
3 Replies
8. Shell Programming and Scripting
how can i find number of lines in files & subdirectories ? (3 Replies)
Discussion started by: pcbuilder
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time..
Thanks (3 Replies)
Discussion started by: ammu
3 Replies
10. Shell Programming and Scripting
Hi All,
How do i find out the number of files in a directory using unix command ? (14 Replies)
Discussion started by: Raynon
14 Replies