Sponsored Content
Full Discussion: find the file by size
Top Forums UNIX for Dummies Questions & Answers find the file by size Post 5526 by rooh on Thursday 16th of August 2001 06:46:09 AM
Old 08-16-2001
find the file by size

Hi,

Can somebody PLEASE help me.
Suppose I want to find a file which has largest no of bytes in a particular directory, How do i do that.
ls -s will give the size of Blocks.

But I want the largest sized file and in bytes or KB OR MB.

tHANKS IN advanvce.
Bye

Rooh
Smilie
 

10 More Discussions You Might Find Interesting

1. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

2. Shell Programming and Scripting

find file size

My Question is ----------------- Assume you've a directory (i.e /home/test/) which contains n number of files, rename all the files which has byte count more than zero (0) with .bak extension. Write shell script to achieve this output, execute the same without using". / " in front of... (6 Replies)
Discussion started by: hgriva1
6 Replies

3. UNIX for Advanced & Expert Users

Find file size and date

Hi in my shell script I have to do this 1. there is a file called testing.txt in /home/report directory If the file size is 0(zero) and date is today's date, then I have to print "Successful" else "Failed". 2. There is a file called number.txt which will have text only one line like this... (10 Replies)
Discussion started by: gsusarla
10 Replies

4. Shell Programming and Scripting

How to find size of a file

Hi, I have to directory /usr/inbound ------------- 10900.txt 10889.txt 109290202.txt I need to create inbound directory and i need to know size of these files one by one if file size is zero i need to print message like "empty file" Please help me how to solve this thanks krish. (4 Replies)
Discussion started by: kittusri9
4 Replies

5. UNIX for Advanced & Expert Users

how to find the file size in unix

Anybody can help HOW TO FIND THE FILE SIZE IN UNIX (5 Replies)
Discussion started by: lmraochodisetti
5 Replies

6. Shell Programming and Scripting

find a file and print its size

I have a directory, /local/test/ under this directory is many subdirectories, each subdir has about 70 files, the 70 files are always the same names. I want to print to the screen the size of fileabc.txt in each of the subdirectories. I cannot seem to work with pipe and splats * because there are... (3 Replies)
Discussion started by: ajp7701
3 Replies

7. Shell Programming and Scripting

find with file size and show the size

Hi All... is the below command be modified in sucha way that i can get the file size along with the name and path of the file the below command only gives me the file location which are more than 100000k...but I want the exact size of the file also.. find / -name "*.*" -size +100000k ... (3 Replies)
Discussion started by: rpraharaj84
3 Replies

8. UNIX for Dummies Questions & Answers

Recursive Find on file size

Is there a way to use the find command to recursively scan directories for files greater than 1Gb in size and print out the directory path and file name only? Thanks in advance. (6 Replies)
Discussion started by: jimbojames
6 Replies

9. Shell Programming and Scripting

How to find size of a file in perl?

Hai guys, I am kiran. I created GUI by using Gtk2-Perl. In that GUI I was running 3 shell scripts by using system command and also passing arguments to the shell scripts from GUI script. In that arguments I can get the path like /home/kiran/pdk/sample/calibre (this is the output of shell... (2 Replies)
Discussion started by: kiran425
2 Replies

10. Shell Programming and Scripting

Find the original file size of encrypted file

Hi, I am trying to find out the original file size of an encrypted file in SunOS. The file was decrypted with gpg command. I want to know the size of the orginal file without decrypting it. I am using the below command, but it is not working for big files(more than 1 GB). gpg --passphrase... (4 Replies)
Discussion started by: vsachan
4 Replies
TP(5)								File Formats Manual							     TP(5)

NAME
tp - DEC/mag tape formats DESCRIPTION
The command tp dumps files to and extracts files from DECtape and magtape. The formats of these tapes are the same except that magtapes have larger directories. Block zero contains a copy of a stand-alone bootstrap program. See bproc(8). Blocks 1 through 24 for DECtape (1 through 62 for magtape) contain a directory of the tape. There are 192 (resp. 496) entries in the directory; 8 entries per block; 64 bytes per entry. Each entry has the following format: struct { char pathname[32]; int mode; char uid; char gid; char unused1; char size[3]; long modtime; int tapeaddr; char unused2[16]; int checksum; }; The path name entry is the path name of the file when put on the tape. If the pathname starts with a zero word, the entry is empty. It is at most 32 bytes long and ends in a null byte. Mode, uid, gid, size and time modified are the same as described under i-nodes (see file system filsys(5)). The tape address is the tape block number of the start of the contents of the file. Every file starts on a block boundary. The file occupies (size+511)/512 blocks of continuous tape. The checksum entry has a value such that the sum of the 32 words of the directory entry is zero. Blocks above 25 (resp. 63) are available for file storage. A fake entry has a size of zero. SEE ALSO
filsys(5), tp(1) BUGS
The pathname, uid, gid, and size fields are too small. TP(5)
All times are GMT -4. The time now is 05:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy