The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Size of Directory tantric High Level Programming 1 06-28-2007 03:43 PM
size of directory with ls -l pascalbout AIX 2 02-21-2006 03:21 PM
size of a directory collins High Level Programming 6 10-15-2004 06:08 PM
size of a directory? yls177 UNIX for Dummies Questions & Answers 2 11-25-2002 09:44 AM
Size of a directory minazk Shell Programming and Scripting 9 10-01-2002 07:03 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 02-27-2007
redbeard_06 redbeard_06 is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 22
size of directory

Hello again;

I have a directories and subdirectories in my current directory and i wanna to find the directories( and subdirectories ) which are larger than what user enters as first parameter.

find . -type d -size +"$1"c -print > directories.dat

I used this command and i am not sure it is working properly.
Because i entered the
./myprog.sh 300
and it found empty directory.

Or i entered the
./myprog.sh 500000
and it found nothing however in the current directory i have directories which are larger than 500000 bytes

i wonder this command are working for directory search or not working

Thanks for your replies..
 

Bookmarks

Tags
linux, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0