10 More Discussions You Might Find Interesting
1. 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
2. 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
3. Shell Programming and Scripting
Hi
I have awk script that is reading data from file and printing the result on the monitor....I need to read more than one file .....one by one... and store the result in output file...
---------- Post updated at 06:41 AM ---------- Previous update was at 06:39 AM ----------
please i need... (4 Replies)
Discussion started by: aldreho
4 Replies
4. UNIX for Dummies Questions & Answers
I have 20 or so files that are ftp'd each day to a particular directory. I want to create a script that will tell me if any of these files fails to arrive or if any additional files arrive. I'm thinking I'd have a list of file names that should arrive each day, and the script would check each days... (2 Replies)
Discussion started by: daveyc82
2 Replies
5. Shell Programming and Scripting
I have a large Filesystem on an AIX server and another one on a Red Hat box. I have syncd the two filesystems using rsysnc.
What Im looking for is a script that would compare to the two filesystems to make sure the bits match up and the number of files match up.
its around 2.8 million... (5 Replies)
Discussion started by: zippdawg2001
5 Replies
6. Shell Programming and Scripting
Hello,
I'd like to handle incoming (uploaded) files from a shell script, ideally without busy polling / waiting (e.g. running a cron task every 15'). Is there a command that would just sleep until a new entry has been created in a directory, allowing scripts such as the following:
while... (9 Replies)
Discussion started by: baldyeti
9 Replies
7. Shell Programming and Scripting
Anyone has a script or command in UNIX that can take 4 to five different numbers and calculate the average? (2 Replies)
Discussion started by: bbbngowc
2 Replies
8. UNIX for Dummies Questions & Answers
hi
I have a bit of a problem i need help with.
I have a script that runs no problems when i run it manually. as soon as i stick in
tester: /app/scripts/run.pl
into /etc/aliases & try to run it by sending a mail it doesnt work.
the output files are owned by daemon, which i dont like & think... (7 Replies)
Discussion started by: jojo77
7 Replies
9. UNIX for Dummies Questions & Answers
How to find the number of incoming requests to a http server and the maximum requests it can serve? (1 Reply)
Discussion started by: laddu
1 Replies
10. Shell Programming and Scripting
awk script to find the number of files in a directory with their date less than 15-oct-2006
please help (4 Replies)
Discussion started by: uni_ajay_r
4 Replies