Ted's Blog

Happy coding

shell判断某一目录下是否有文件存在

Ted posted @ 2008年8月12日 22:46 in 未分类 with tags shell , 7694 阅读

du -s dir 返回第一个参数为0,可判断为空目录,没有文件,或者文件为0字节

 

  ls -al|wc -l 

 

use find:

[[ -z $(find -type d -empty -name dirname) ]]&&echo No empty||echo empty

 

another try (in Linux):

! ls -A d1 | grep -q '.' && echo empty || echo not empty

Avatar_small
free bloons td 5 说:
2018年11月17日 20:45

The best place for online free games is available here before you.
So be quick and enjoy these games in the best quality.

Avatar_small
Donna Rea 说:
2020年4月03日 20:02

The new channel is devoid of the mistakes for the citizens. The element of the file and ukwritings review is improved for the turns. The struggle is done for humans. Element is fired for humans. The turn iodine for the role of the plants for humans.

Avatar_small
ETHENS 说:
2020年10月06日 22:54

For sure I did the right thing by choosing this site https://w9.pdffiller.com/en/features.htm . Due to the fact that this site is filled with all the useful stuff. I think you guys have to visit here as soon as possible.

Avatar_small
ETHENS 说:
2020年10月28日 21:47

UK Board 12th Question Papers 2021 Students going to appear for intermediate exams must download the UK board question paper of class 12 to prepare better. Students can also download question papers for all subjects in this article along with previous year papers. Solving UK board 12th question papers 2021 will aid students to ace the exam. The Uttarakhand 12th question papers will introduce students with exam Uttarakhand 12th Question Paper 2021 pattern, marking scheme, types and number of questions asked and the difficulty level of the UK Board 12th exam. UK Board 12th question papers 2021 will be published on the official website after the exams. But students can solve previous years’ question papers along with UK 12th model papers 2021 to analyze their preparation level. Read the complete article to know more about UK Board 12th question papers 2021

Avatar_small
ETHENS 说:
2020年10月31日 19:10

I dont think there is such thing on internet. Here at this site https://fupping.com/marcus/2020/08/22/electronic-signature-integration-with-signnow-for-maximum-productivity/ everything is informative. You guys have to take a look at this amazing site.

Avatar_small
ETHENS 说:
2020年11月03日 17:24

Hey, this day is too much good for me, since this time I am reading this enormous informative article here at my home. Thanks a lot for massive hard work. atelier condo

Avatar_small
ETHENS 说:
2020年11月03日 20:22

Nice knowledge gaining article. This post is really the best on this valuable topic. peak residences

Avatar_small
ETHENS 说:
2020年11月03日 22:13

That appears to be excellent however i am still not too sure that I like it. At any rate will look far more into it and decide personally! one normanton park

Avatar_small
Azharsk 说:
2020年11月11日 17:49

That gives off an impression of being brilliant anyway i am still not very beyond any doubt that I like it. At any rate will look significantly more into it and choose by and by!
[url=https://dialcleaningservices.com/]windowcleaning montreal/url]

Avatar_small
Azharsk 说:
2020年11月11日 20:10

Nicely well-written article. It was an awesome article to read. Complete rich content and fully informative residentialwindow cleaning montreal

Avatar_small
DANI 说:
2020年11月30日 19:29

I have visited to this site multiple times and everytime I find beneficial jobs for me so I would suggest please come to this site and take the chance from here. <a href="https://magiciptv.co.uk/iptv-m3u-subscription">IPTV</a>

Avatar_small
DANI 说:
2020年11月30日 19:29

I have visited to this site multiple times and everytime I find beneficial jobs for me so I would suggest please come to this site and take the chance from here. [url=https://magiciptv.co.uk/iptv-m3u-subscription]IPTV[/url]

Avatar_small
DANI 说:
2020年11月30日 21:31

I have visited to this site multiple times and everytime I find beneficial jobs for me so I would suggest please come to this site and take the chance from here. IPTV

Avatar_small
ETHENS 说:
2020年12月27日 20:59

Himachal Pradesh Government employees need to get themselves registered with IFMS portal to access their respective employee login page, and there is no online process for registration, thus employee’s follow steps to get IFMS credentials. State governments across India have been transforming management systems to online, and in the same line even the Himachal Pradesh government has transformed their IFMS Himachal PortalFinancial system into online and redefined it as HIMKOSH, which is the abbreviation for Himachal Pradesh Integrated Financial Management Information System through which all the employees can manage their services provided by the HR directly. In this guide you will learn about the process to help you understand the HIMKOSH registration, which for starters might be new for you, but the guide below will essentially help you understand how easy it is to register your account and get started.

Avatar_small
ETHENS 说:
2021年1月05日 17:25

Interesting read , I am going to spend more time learning about this subject CFA Books

Avatar_small
ETHENS 说:
2021年1月24日 13:24

You got a very good website, Gladiola I discovered it through yahoo. indian visa

Avatar_small
ETHENS 说:
2021年1月26日 18:14

I was recommended this blog by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my problem. You’re incredible! Thanks! Dob lookup

Avatar_small
ETHENS 说:
2021年1月27日 23:35 the time to read or visit the content or sites we have linked to below the http://ssndob01.ukit.me/
Avatar_small
ETHENS 说:
2021年1月28日 17:55

Wow! This could be one particular of the most useful blogs We have ever arrive across on this subject. Actually Magnificent. I am also a specialist in this topic so I can understand your effort. Sony Liv

Avatar_small
ETHENS 说:
2021年2月03日 22:43

Real informative and fantastic anatomical structure of subject material , now that’s user pleasant (:. slillpp

Avatar_small
AREE 说:
2021年6月30日 00:32

Thanks for an interesting blog. What else may I get that sort of info written in such a perfect approach? I have an undertaking that I am just now operating on, and I have been on the lookout for such info. cinema

Avatar_small
alam 说:
2021年7月01日 14:15

Only strive to mention one's content can be as incredible. This clarity with your post is superb! Thanks a lot, hundreds of along with you should go on the pleasurable get the job done. cinema

Avatar_small
aree 说:
2021年7月24日 21:14

You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. top esthetic

Avatar_small
alam 说:
2021年8月20日 17:53 I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. เสือมังกร ออนไลน์
Avatar_small
alam 说:
2021年10月09日 15:37

Great article Lot's of information to Read...Great Man Keep Posting and update to People..Thanks 백링크

Avatar_small
aree 说:
2021年10月14日 18:59 I'm glad to see the great detail here!. 축구중계
Avatar_small
alam 说:
2021年10月16日 14:51

I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites blog site list and will be checking back soon. Please check out my site as well and let me know what you think. https://zephyrnet.com/de/olympic-games-tokyo-2021/

Avatar_small
aree 说:
2021年10月17日 12:24 This blog is really great. The information here will surely be of some help to me. Thanks!. Glasreinigung Hardegsen
Avatar_small
alam 说:
2021年10月17日 16:43

Great article Lot's of information to Read...Great Man Keep Posting and update to People..Thanks Direct Response Copywriting

Avatar_small
aree 说:
2021年10月21日 00:06

Wow! This could be one of the most useful blogs we have ever come across on thesubject. Actually excellent info! I’m also an expert in this topic so I can understand your effort. https://bridelle.pl/2021/jak-wybrac-wiarygodne-kasyno-wirtualne/

Avatar_small
aree 说:
2021年10月26日 17:47

Thanks for picking out the time to discuss this, I feel great about it and love studying more on this topic. It is extremely helpful for me. Thanks for such a valuable help again. web design company in pakistan

Avatar_small
aree 说:
2021年10月27日 19:31

This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. homework accounting

Avatar_small
alam 说:
2021年10月27日 23:16

Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. https://nuernberger-blatt.de/2021/10/das-sind-die-besten-fussballvereine-in-deutschland-117640/

Avatar_small
aree 说:
2021年11月02日 19:17

Thanks for providing recent updates regarding the concern, I look forward to read more. sbobet online

Avatar_small
alam 说:
2021年11月05日 21:58

You have beaten yourself this time, and I appreciate you and hopping for some more informative posts in future. Thank you for sharing great information to us. tangkasnet

Avatar_small
aree 说:
2021年11月12日 18:08

The writer has outdone himself this time. It is not at all enough; the website is also utmost perfect. I will never forget to visit your site again and again. slot joker123

Avatar_small
ali 说:
2021年11月22日 14:44

I'm impressed, I must say. Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, you ve hit the nail on the head. Your blog is important.. umzug münchen

Avatar_small
alam 说:
2021年11月25日 14:14

This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post.! sylwester w klubie

Avatar_small
alam 说:
2021年12月01日 14:22

Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. joker388

Avatar_small
pari 说:
2021年12月06日 12:36 Impressive web site, Distinguished feedback that I can tackle. Im moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards. http://harrislisa72.com/activity/p/385103/
Avatar_small
alam 说:
2022年1月09日 20:11

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. sbobet

Avatar_small
Harry 说:
2022年1月10日 03:59 The blog and data is excellent and informative as well 클레오카지노 쿠폰
Avatar_small
Harry 说:
2022年1月14日 19:36

You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site best rewriter tool

Avatar_small
COOK 说:
2022年1月26日 16:46 I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. 토토커뮤니티
Avatar_small
. 카지노사이트 说:
2022年4月13日 01:15

Selecting the most truly effective Delta-8 Gummies available available on the market check here

Avatar_small
COOK 说:
2022年5月13日 05:29

I felt very happy while reading this site. This was really very informative site for me. I really liked it. This was really a cordial post. Thanks a lot!. 먹튀검증

Avatar_small
COOK 说:
2022年5月28日 04:57

It’s appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I wish to suggest you few interesting things or advice. Perhaps you could write next articles referring to this article. I desire to read even more things about it! bola tangkas

Avatar_small
COOK 说:
2022年5月29日 22:19

You completed a few fine points there. I did a search on the subject and found nearly all persons will go along with with your blog. https://www.parisclub888.net

Avatar_small
COOK 说:
2022年5月29日 23:32

Great knowledge, do anyone mind merely reference back to it royalgreen

Avatar_small
COOK 说:
2022年6月03日 07:11

Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! dagotogel

Avatar_small
COOK 说:
2022年6月09日 22:01

Efficiently written information. It will be profitable to anybody who utilizes it, counting me. Keep up the good work. For certain I will review out more posts day in and day out. Bürogemeinschaft ausschreiben

Avatar_small
COOK 说:
2022年6月18日 20:34

howdy, your websites are really good. I appreciate your work. 먹튀검증커뮤니티

Avatar_small
COOK 说:
2022年6月20日 20:51

Your article has piqued a lot of positive interest. I can see why since you have done such a good job of making it interesting. 토토사이트

Avatar_small
Best Nft projects 20 说:
2022年7月04日 05:40

And then the game that we all need to get is the Ultimate Workout, Biggest Loser style. You will work out with Bob and Jillian, the best workout coaches ever. The Biggest Loser Ultimate Workout will maximize your healthy diet. It boasts 50 new, healthy recipes. You can also track your caloric intake.

Avatar_small
wddfgeew 说:
2022年7月04日 18:09

Hi, I am Tanuja. I am not a regular call girl. But I know to satisfied my client. I will give. Read more · Hyderabad · HYDERABAD ESCORT SERVICE. <a href="https://stepeleven.in">Pune Call Girls</a>

Avatar_small
wddfgeew 说:
2022年7月04日 19:24

Hi, I am Tanuja. I am not a regular call girl. But I know to satisfied my client. I will give. Read more · Hyderabad · HYDERABAD ESCORT SERVICE. Pune Call Girls

Avatar_small
Harry 说:
2022年7月05日 18:09

Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! sprzęgło sportowe

Avatar_small
COOK 说:
2022年7月05日 19:21

That is the excellent mindset, nonetheless is just not help to make every sence whatsoever preaching about that mather. Virtually any method many thanks in addition to i had endeavor to promote your own article in to delicius nevertheless it is apparently a dilemma using your information sites can you please recheck the idea. thanks once more. make money online

Avatar_small
wddfgeew 说:
2022年7月16日 19:52

Guaranteed deposits are measured at more than 100 million won, and all of them are called major sites. 안전놀이터

Avatar_small
COOK 说:
2022年7月16日 22:10

You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. house

Avatar_small
Pooja 说:
2022年7月18日 14:32
I am young spirited woman with an incredible body, soft skin and nice figure giving your best expertise what you ever will get. Mumbai escort service
Avatar_small
Pooja 说:
2022年7月18日 14:34

 Call Now Click Here Top Call Girls City Hyderabad Pune Bangalore Rate of Call Girls Hyderabad ₨ 30000 Per Night Availability Chennai escort service

Avatar_small
Pooja 说:
2022年7月18日 14:35
Hi, I am Tanuja. I am not a regular call girl. But I know to satisfied my client. I will give. Read more. Escort Service. Recent. Escort service in Pune
Avatar_small
Pooja 说:
2022年7月18日 14:35
Hello, We area unit Simran twenty seven years recent, and Katia four years recent, a really nice couple, with nice body proportions. Mumbai escort service
Avatar_small
COOK 说:
2022年7月18日 18:11

I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. https://designacademy.bg/index.php?q=gd

Avatar_small
COOK 说:
2022年7月22日 03:05

Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject. https://densipaper.com

Avatar_small
DDD 说:
2022年7月23日 17:48

printer toner online MVP Ink & Office is a one-stop online shop that provides the best Canadian-made print products. We provide printer inks, toner cartridges, ... https://mvpinkandoffice.com/

Avatar_small
COOK 说:
2022年7月27日 22:09

I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing. credit cards

Avatar_small
manganelo 说:
2022年7月29日 05:37

How much might a low budget movie cost? A typical movie might cost 200 to 300 thousand dollars. But a filmmaker may actually have two budgets. For example the filmmaker may wish to work with a budget of 300 thousand dollars, but have an alternate budget of about half that or less.

Avatar_small
dark web/deep web/d 说:
2022年8月04日 18:58

These hackers use special software that has the capability of "linking" to other web sites. Each time you click a link on one of these sites, the browser will send a request for more information.   dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月04日 19:42

Most of these links contain viruses and other malware that can infect your computer and steal your private information. The only way to protect your computer from these harmful downloads is by running an antivirus program at regular intervals.   deep web

Avatar_small
dark web/deep web/d 说:
2022年8月04日 19:57

By staying abreast of the latest developments, you will be able to make the most of the changes that are happening on the Internet in order to remain a successful Internet marketer.  dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月04日 20:19

If you are thinking; well there are good links on the internet too right? You are absolutely right, but you have to be very careful when you are surfing the dark web.   dark web sites

Avatar_small
dark web/deep web/d 说:
2022年8月04日 20:34

But how do you get started? Most people who are interested in the dark web don't know where to start.   dark web

Avatar_small
dark web/deep web/d 说:
2022年8月04日 20:50

These things will help you succeed in the world of affiliate marketing. Chia has been a successful internet marketer for years, and he has a lot of great advice to share with you.  work from home jobs

Avatar_small
dark web/deep web/d 说:
2022年8月04日 21:07

Either way, you'll need to do some marketing to help sell the product. Once you do that, you'll be on your way to affiliate marketing success.  affiliate marketing success


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter