Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check filesize

Status
Not open for further replies.

orbiton

Technical User
Jan 12, 2005
30
US
Hi
I will like to find files that are above 1000mb on my system then append the file names into a folder for later vewing.

Is it possible to get a script for this job?

Thank you
 
See my post in the Solaris forum. What OS are you actually using, Solaris or SCO.

I want to be good, is that not enough?
 
man find

Code:
 The following removes all files named core or filenames ending in .out that
  have not been accessed in the last seven days.

  find / \( -name core -o -name "*.out" \) -atime +7 -exec rm {} \;

  The next example uses find with the -cpio expression to make a tape archive
  of all files modified within the last seven days.

  find / -mtime -7 -print -cpio /dev/rct0

  find is used here to list all files within a given range of sizes (between
  50 and 100 kilobytes) by including the -size expression twice:

  find / -size +100 -size -200 -exec ls -s {} \;

  For comparison, the ls(C) command is called with the -s option to report the
  size of each file in 512-byte blocks (including indirect blocks).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top