Unlike Linux which has lots of GNU utilities like ‘maxdepth’, ‘depth’ etc… Solaris(and perhaps other flavors of Unix) doesnt have a similar utility to specify the depth of the ‘find’ command. After some Googling I found a way to do this on Solaris.
Find below –
To find all in a directory(to just list you can use the ‘ls’ command of course)
find . \( ! -name . -prune \) -type fI wanted to find the all the zero KB files in the current directory, so it is:
find . \( ! -name . -prune \) -type f -size 0Then, I wanted to delete them:
find . \( ! -name . -prune \) -type f -size 0 | xargs rm -fThanks,
Arun.P.C
wow! thanks for that tremendous short article. I really liked it for the core. Hope you keep putting up such wonderful posts
Wow, marvelous blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is excellent, as well as the content!. Thanks For Your article about Finding and deleting zero KB files from the current directory in Solaris | Arun.P.C& .
Wow, marvelous blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is fantastic, as well as the content!. Thanks For Your article about Finding and deleting zero KB files from the current directory in Solaris | Arun.P.C& .
Wow, marvelous blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is excellent, as well as the content!. Thanks For Your article about Finding and deleting zero KB files from the current directory in Solaris | Arun.P.C& .
Wow, incredible blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is wonderful, let alone the content!. Thanks For Your article about Finding and deleting zero KB files from the current directory in Solaris | Arun.P.C& .
Wow, awesome blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your website is fantastic, let alone the content!. Thanks For Your article about Finding and deleting zero KB files from the current directory in Solaris | Arun.P.C& .
Wow, awesome blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your website is wonderful, let alone the content!. Thanks For Your article about Finding and deleting zero KB files from the current directory in Solaris | Arun.P.C& .
If some one needs to be updated with newest technologies
afterward he must be go to see this website and be up to date every day.
Hi there! I could have sworn I’ve been to this site before but after reading through some of
the post I realized it’s new to me. Anyways,
I’m definitely glad I found it and I’ll be bookmarking and checking back often!
My spouse and I stumbled over here from a different web page and thought I might check things out.
I like what I see so now i’m following you. Look forward to finding out
about your web page repeatedly.
Hey there! Do you know if they make any plugins to
help with Search Engine Optimization? I’m trying to get my blog to rank for some
targeted keywords but I’m not seeing very good gains.
If you know of any please share. Thank you!
Hi, I wish for to subscribe for this blog to take most recent updates, thus where can i do it please assist.
Hi, I think your blog might be having browser compatibility issues.
When I look at your blog site in Firefox, it looks fine but when
opening in Internet Explorer, it has some overlapping. I just wanted to
give you a quick heads up! Other then that, very good blog!
Wow, that’s what I was searching for, what a stuff!
present here at this webpage, thanks admin of this website.
Thanks for the tips you have provided here. Cheers!
Hi there, just became aware of your blog through Google, and found that it is really informative.
Iཿm gonna watch out for brussels. Iཿll appreciate if you continue this in future.
Lots of people will be benefited from your writing.
Cheers!
I genuinely enjoyed this. It was incredibly educational as well as useful.
I will return to examine on new posts.
My coder is trying to persuade me to move to .net from PHP.
I have always disliked the idea because of the expenses. But he’s tryiong none the less.
I’ve been using Movable-type on several websites for about a
year and am concerned about switching to another platform. I have heard very
good things about blogengine.net. Is there a way I can transfer all my wordpress
posts into it? Any help would be really appreciated!
What’s up, just wanted to say, I loved this blog post.
It was funny. Keep on posting!
Hello to every body, it’s my first go to see of this blog;
this weblog includes amazing and really excellent data
for readers.
As I site owner I believe the written content material
here is extremely fantastic. Congratulations.
Fantastic items from you, man. I have understand your stuff previous to and you’re simply extremely magnificent.
I actually like what you’ve obtained right here, certainly like what you’re saying and the way during which you assert it.
You are making it entertaining and you still care for to keep it sensible.
I can’t wait to learn far more from you. That is really a terrific web site.
An intriguing discussion is definitely worth comment.
I think that you need to write more about
this issue, it might not be a taboo subject but typically people don’t discuss such subjects.
To the next! Kind regards!!
Howdy very nice website!! Man .. Beautiful .. Wonderful ..
I will bookmark your web site and take the feeds also?
I’m glad to seek out so many helpful information here within the put up,
we want work out extra strategies on this regard,
thanks for sharing. . . . . .
I every time used to study piece of writing in news papers but
now as I am a user of net thus from now I am using net for posts, thanks to web.
What a information of un-ambiguity and preserveness of valuable experience regarding
unexpected emotions.
I know this if off topic but I’m looking into starting
my own weblog and was wondering what all is needed to
get setup? I’m assuming having a blog like
yours would cost a pretty penny? I’m not very internet savvy so I’m not 100% positive.
Any tips or advice would be greatly appreciated. Kudos
Thank you a bunch for sharing this with all folks you really
recognise what you are speaking approximately!
Bookmarked. Please additionally visit my website =). We could have a hyperlink trade agreement between us
Good answers in return of this issue with firm arguments and telling all regarding that.
Thanks for taking the time to explore this, It is extremely useful for
me.
Wow, amazing blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your
website is fantastic, as well as the content!
I got what you mean, saved to bookmarks, great site.
I loved as much as you will receive carried out right here.
The sketch is tasteful, your authored subject matter
stylish. nonetheless, you command get bought an edginess over
that you wish be delivering the following. unwell unquestionably come more formerly again since
exactly the same nearly very often inside case you shield this increase.
Good way of explaining, and pleasant piece of writing to take facts about my presentation subject,
which i am going to deliver in academy.
Remarkable! Its in fact remarkable article,
I have got much clear idea on the topic of from this post.
Awesome things here. I’m very glad to peer your post.
Thank you a lot and I am looking forward to touch you.
Will you please drop me a e-mail?
I loved as much as you will receive carried out right here.
The sketch is attractive, your authored material stylish. nonetheless, you command
get got an nervousness over that you wish be delivering the following.
unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case you shield this hike.
Genuinely no matter if someone doesn’t know then its uup to other users that
they will help, soo here it happens.
Highly descriptive post, I enjoyed that a lot.
Will there be a part 2?
Do you mind if I quote a few of your articles as long as
I provide credit and sources back to your webpage? My
website is in the very same area of interest as yours and my users would truly benefit from a lot of the information you provide here.
Please let me know if this okay with you. Appreciate
it!
I was curious if you ever considered changing the layout of your blog?
Its very well written; I love what youve got to
say. But maybe you could a little more in the way of content so people could
connect with it better. Youve got an awful lot
of text for only having one or two images.
Maybe you could space it out better?
Hey just wanted to give you a quick heads up and let you
know a few of the pictures aren’t loading correctly. I’m not sure why but I think its a linking issue.
I’ve tried it in two different internet browsers and both show the same results.
As the admin of this site is working, no uncertaintyy very quickly it will
be well-known, due to its feature contents.
Thanks for your marvelous posting! I certainly enjoyed reading it,
you wilpl be a great author.I will make certain to bookmark your
blog and will often come back in the future. I want to encourage continue your great job, have a nice evening!
Make sure you read any content you get from their store to be sure it isn’t just keywords and crap.
For beginners, it is highly recommended to generate an agenda
before using Google Ad – Words since this method involves monetary investment.
Exact match – by using this type, you have to apply the square
brackets [ ] across the search phrase which narrows the search even further.
I have been reading your blogs Finding and deleting zero KB files from the current directory in Solaris | Arun.P.C’s Blog and they are very useful for me to read something new and special. And You can also visit our web also best online investment website.
I think that what you said made a ton of sense. However, think on this,
what if you added a little content? I ain’t saying your content
is not good, however suppose you added a headline that
makes people want more? I mean Finding and deleting zero KB files from
the current directory in Solaris | Arun.P.C’s Blog is a little
boring. You might glance at Yahoo’s front page and see how they write article headlines to get people
to click. You might add a video or a pic or two to get readers interested about everything’ve got to say.
Just my opinion, it would bring your blog a little livelier.
Howdy verry nice website!! Guy .. Beautiful ..
Superb .. I’ll bookmark your wweb site and takme the feeds also?
I’m satisfied to find numerous useful information right here in the put up, we
need work out extra strategies on this regard, thanks for sharing.
. . . . .
Your website might have mission-critical operations.
However, making the right choice isn’t as easy as it would seem.
If you take this approach before making your decision, you will be
able to make the right choices at the right price.
This is a great tip especially to those new to the blogosphere.
Simple but very precise information… Many thanks for sharing this one.
A must read article!