10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a huge directory (with millions of files) and need to find out duplicates based on BOTH file name and File size.
I know fdupes but it calculates MD5 which is very time-consuming and especially it takes forever as I have millions of files.
Can anyone please suggest a script or... (7 Replies)
Discussion started by: prvnrk
7 Replies
2. UNIX for Dummies Questions & Answers
Is there any command that can list out all the files size including directory in 1 command?
`ls` will only give 2048 for a directory, which i'm looking for the actual size. (5 Replies)
Discussion started by: lsy
5 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I have a flat file with a list of files with the path to the file and I am attempting to calculate the filesize for each one; however xargs isn't playing nicely and I am sure there is probably a better way of doing this.
What I envisioned is this:
cat filename|xargs -i ls -l {} |awk... (4 Replies)
Discussion started by: joe8mofo
4 Replies
4. Shell Programming and Scripting
Hello,
I've downloaded a huge amont of files
I've got a list of files from a remote server.
-rw-r--r-- 1 str661 strem 453465260 Dec 16 15:54 SATRYS2V1_20021218_temp_bias.nc
-rw-r--r-- 1 str661 strem 17669468 Dec 16 18:01 SATRYS2V1_20021225_hdyn_bias.nc
-rw-r--r-- 1... (9 Replies)
Discussion started by: Aswex
9 Replies
5. UNIX for Dummies Questions & Answers
Hi guys,
I need to do 100 files comparison after I sorted the files. There are no specific key for sorting so i plan to arrange the files based on the file size. The command that i used to sort the files by size is as per below:-
ls -l | sort +4rn | awk '{print $5, $9}'
The problem that i... (3 Replies)
Discussion started by: shahril
3 Replies
6. UNIX for Dummies Questions & Answers
Command ls -l *cpp lists all cpp program files in a directory. It shows the size of each file. Using a calculator to work out the total size of the cpp files would be very tedious.
Is there a way to get the total size from the command line? (5 Replies)
Discussion started by: resander
5 Replies
7. Solaris
Hi,
I wanted a script to find sum of files for a particular date, below is my script
ls -lrt *.req | nawk '$6 == "Aug"' | nawk '$7 == "1"'| awk '{sum = sum + $5} END {print sum}'
However, i get the error below
/usr/bin/ls: arg list too long
How do i fix that.
Many thanks before. (2 Replies)
Discussion started by: beginningDBA
2 Replies
8. Shell Programming and Scripting
hi all
plz help in listing the files with size in bytes.
thnks
-Bali (4 Replies)
Discussion started by: balireddy_77
4 Replies
9. HP-UX
I'm new to HP-UX and am looking for the command that will allow to me determine the total size of listed files. I'm being told that my backup selection is exceeding my tape drive size and need to determine how much information is being backed up.
Help? (3 Replies)
Discussion started by: rgordon
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I need to find files list which are more than 300 MB size? My script It should search all inner directories too.
How can I proceed? Any idea? (2 Replies)
Discussion started by: redlotus72
2 Replies