![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Cp files (>5 Mb size) from one directory to another | skcontact | UNIX for Dummies Questions & Answers | 6 | 06-12-2008 07:39 AM |
| files of size 0 need to be deleted inside a directory | namishtiwari | Shell Programming and Scripting | 2 | 01-28-2008 04:11 AM |
| Find the size of a directory | divz | Shell Programming and Scripting | 5 | 01-25-2008 01:57 AM |
| How find size of directory | truth | HP-UX | 2 | 12-07-2005 09:12 PM |
| How to check if 3 files have same size in directory | oggle | Shell Programming and Scripting | 5 | 02-16-2005 12:51 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Find files size 0 within a directory
Ok, I'm very new to shell scripting and need some help. Given a directory path, I need to find all files within the directory of length/size zero and print the full pathname for each file to a text file. From what I've looked at so far I figured what I have would work but I don't even get an error, it just doesn't give anything for output. Right now I'm just trying to print to the screen so I know if it works right away. Here's what I got:
find $dirpath -type f -size 0 -exec ls {} \; Any help would be greatly appreciated! |
|
||||
|
Thx
hey thx guys. its alwasy the little things u over look
![]() |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|