Monday, November 5, 2007

Linux - count number of files in a sub directory

http://arunonfire.blogspot.com/2007/11/linux-count-number-of-files-in-sub.html

[a typo corrected..Thanks 2 itmozart 4 pointing it out]

To get the number of files in a directory including sub directories on Linux

Run ls -1R [shift + \] wc –l

e.g:

[root@HACK1 root]# ls -1R [shift + \] wc -l
29
[root@HACK1 root]#

Thanks to my friend shiva for providing this.

34 comments:

Anonymous said...

This doesn't work as expected at least on my [Fedora] system.

Sample of ls -1R:
*****************************
.:
file1
dir1

./dir1:
file2
*****************************
which has spaces and dir names inside.

RyDER said...

sorry...i made a typo..its

ls -1R | wc -l

Theo d'or said...

Try "find . -type f |wc -l" to just get the number of files

Anonymous said...

arunonfire.blogspot.com is very informative. The article is very professionally written. I enjoy reading arunonfire.blogspot.com every day.
instant cash loan
online payday loans

Anonymous said...

...please where can I buy a unicorn?

Anonymous said...

[url=http://italtubi.com/ ]acquisto levitra generico [/url] svNonostante ciГІ che la natura del lavoro levitra acquistare qdrzafcfqc [url=http://www.mister-wong.es/user/COMPRARCIALIS/comprar-viagra/]cialis online[/url]

Anonymous said...

Cool blog you got here. I'd like to read more about that theme. Thnx for sharing that material.
Sexy Lady
Asian Escorts

Anonymous said...

[url=http://getloan.skachatnow.co.cc/bad-credit-mortgage-refinancing-loan.php]bad credit mortgage refinancing loan[/url]
http://fastloans.skachatnow.co.cc/chicago-lawsuit-cash-advance.php - chicago lawsuit cash advance
[url=http://paydayloan.skachatnow.co.cc/student-loan-repayment-for-nurse.php]student loan repayment for nurse[/url]
http://paydayloan.skachatnow.co.cc/auto-car-finance-loan.php - auto car finance loan
http://loanstoday.skachatnow.co.cc/government-loan-refinance-student.php - government loan refinance student
[url=http://getloan.skachatnow.co.cc/philadelphia-used-car-loan.php]philadelphia used car loan[/url]
http://paydayloan.skachatnow.co.cc/unsecured-tenant-loan-uk.php - unsecured tenant loan uk
http://fastloans.skachatnow.co.cc/signature-loan-no-credit-check.php - signature loan no credit check
[url=http://newloans.skachatnow.co.cc/finance-company-loan-bad-credit.php]finance company loan bad credit[/url]
[url=http://fastloans.skachatnow.co.cc/graduate-loan-stafford-student.php]graduate loan stafford student[/url]

Anonymous said...

[url=http://collagen-q.ca]collagen cream[/url]


Excel Pivot Table Fundamentals

I won't try and hide the fact from you that I am a big fan of Pivot Tables. I use them a lot in the development of Spreadsheets for my clients. Once the client sees the Pivot Table, they nearly always ask "could I do that?" the answer of course is yes! Unfortunately most [url=http://www.treegrid.com/net-grid-view.html]net grid view[/url] tend to shy away from Pivot Tables, as they see them as too complex. to be honest with you, when you first use a Pivot Table the whole thing can seem a bit daunting. Don't be put off by this as persistence will almost [url=http://www.treegrid.com/asp.net-datagrid.html]net data grid[/url] certainly pay off. I find the best part about Pivot Tables is their ability to be manipulated via 'Trial-and-Error' and immediately show the result. If its' not what you expect, [url=http://www.treegrid.com/pivot-table.html]pivot table[/url] use the Undo feature and/or have another go! What you must always remember is that you are not changing the structure of your original table in anyway at all, so you can do no harm!

Why are they called Pivot Tables ? - Well, basically they allow us to pivot our data via [url=http://www.treegrid.com/java-grid.html]java grid[/url] to produce meaningful information. This makes Pivot Tables interactive in that once the table is complete we can very easily see what effect moving (or pivoting) our data has on our information. This will become patently clear once you give [url=http://www.treegrid.com/ajax-table.html]ajax table[/url] a go. Believe me, no matter how experienced you get at Pivot Tables there will always be an element of trial-and-error involved in producing the desired results! What this means is you will find yourself pivoting your table a lot!

Anonymous said...

jL3R2u http://www.bootsdeutschland.sitew.de/ bY2P6p [url=http://www.bootsdeutschland.sitew.de/]ugg boots g眉nstig[/url] yR1O7y ugg boots g眉nstig yC7N1b
jL3S6m http://frenchbottes.webnode.fr/ cL1O9k [url=http://frenchbottes.webnode.fr/]ugg pas cher[/url] uJ0U3r ugg pas cher qA8T5j
rW0W8m http://botassale.webs.com/ fO6R4c [url=http://botassale.webs.com/]ugg[/url] iJ5H3v ugg baratas fD7G2b
gZ3W8f http://canadaboot.webs.com/ bL4D3z [url=http://canadaboot.webs.com/]ugg canada[/url] mY9L1z uggs canada hY1J5t
aO5H4v http://stivalishopit.webs.com/ bT9V1o [url=http://stivalishopit.webs.com/]ugg[/url] cF8P5o stivali ugg hT9B4l

Anonymous said...

Awesome things here. ӏ am ѵеry glаd tο
look your post. Thank you so much and I am tаking a loоk ahead to contact you.
Wіll you pleaѕe ԁгop me a e-maіl?


Feel freе to visit my web blog Payday Loan
my web page: Pay Day Loans

Anonymous said...

Only they who fulfill their duties in everyday matters will fulfill them on great occasions.
http://www.nflnikejerseysshopse.com/ 9h2u1w4r3c1s9m5f
http://www.longchampsaleukxz.com/ 3p2j6q2c6f9c1w1x
http://www.buybeatsbydrdrexs.com/ 2z5t9k6k7o3m8f4w
http://www.cheapnikeshoesfreeruns.com/ 0h8b4w0a4t8e8b6e
http://www.cheapnikesshoescs.com/ 8q7n9j0v4s9q7a0d
http://www.uggsaustralianorges.com/ 3i0q9p9k7e5s1i2f
http://www.burberryoutletsalexs.com/ 8h2k9h4h9m7v3p8l
http://buy.hairstraighteneraustraliae.com/ 0x1m2x7c1g7d5n7q
http://www.michaelkorsoutletei.com/ 0t7j0i1s8b4v9o7h
http://www.cheapbootsforsale2013s.com/ 5c5q1m2l7e3e1q6c
http://www.cheapfashionshoesas.com/ 1s0b2e8j0b3t4t0z

Anonymous said...

beats by dre auqepdtq casque beats by dre pas cher pamfhnhc casque beats by dre vronxioi casque docteur dre zfrceozu casque monster beats pas cher zxsfopyw casque monster beats zcxrkhrh ecouteur beats aiyiypeu monster beats pas cher hzugbnmt monster beats lekktwhc

Anonymous said...

cheap hollister diyddmuo hollister outlet uk glwhbuwe hollister outlet svyjmqvo hollister sale uk osisnhxq hollister sale egrswbjl hollister uk sale bqdhaefg hollister uk xlokkwkm hollister dwalalhu

Anonymous said...

Its upper sole was made of synthetic suede, Duromesh and
synthetic leather-based. The Nike Max 90 is a widescreen or Nike jogging footwear.
Prior to getting a residence, establish some variables. Right
here comes our subject: What sets Nike shoes aside from competitors?

http://www.airmaxcheapest.co.uk/

Anonymous said...

chaussures christian louboutin vmoqvluz chaussures louboutin pas cher dcwlzpxq chaussures louboutin lsgjjwvy christian louboutin pas cher odnaomzo christian louboutin utqemyea louboutin femme ufdygcoy louboutin pas cher umyphuaj louboutin soldes irjvxgbe louboutin uksuzysk

Anonymous said...

longchamp bags taylqqjw longchamp outlet coivddzq longchamp sale rlhejtpx longchamp tote knhspiob longchamp mqpojfam

Anonymous said...

botas ugg baratas ysnukkao botas ugg espa?a tipqbgqb botas ugg dbeyjpge comprar ugg online owastjjp ugg australia jxjucziw ugg baratas kxjxwjsb ugg espa?a tpuaywhv ugg online jutvsimr ugg cjobgcnp

Anonymous said...

How do you preserve out the burgeoning viruses and Trojan horses, prowling in the cyberspace? There is any amount of plans like spam, adware, spyware, malware and hackers all set to assault at the earliest opportunity. With out the expertise of world wide web users, credit score card numbers or passwords can move onto the improper fingers. These protection problems need to have to be addressed urgently and here are two essential guidelines for you.

one. The very first phase to shield your laptop or computer is to install a good virus scanner and firewall. Let us encounter the details, Microsoft's firewall is just not enough, and so are from your ISP and modems. No modem will come with built in antivirus computer software. Therefore you have to get and set up a single. You can pick from a amount of virus scanners and firewalls, but dependable among them are: Norton, AVG, McAfee, and ZoneAlarm. AVG and ZoneAlarm are free software.

2. A [url=http://scrapeboxfaq.com/ ]buy scraepbox private proxies [/url] will help online stability. This server hides your IP, which is unique and unchangeable even if you want to. This IP identity really should be held magic formula. If a cybercriminal accesses it, he can get your information, and use it to your detriment.

In this complete procedure a proxy operates discreetly. When you consider to accessibility a link, the browser informs the server in typical circumstances, whilst a proxy server assures that it will get this data first, and filters the information. Even if the world wide web server tries to know your IP, it will only be accessing the IP of the proxy server. Nonetheless, the proxy server can obtain all your facts, and therefore you ought to go for a proxy server which you can depend upon.

Because Proxy Servers support On-line Safety., you really should know how to established up a single. Defective set up can lead to an unsafe proxy - therefore carefully adhere to the numerous methods.

one. A great and anonymous proxy is a should. The Web has a complete whole lot of paid and totally free proxy servers. Whilst paid proxies provide far better anonymity, cost-free proxies can also be opted. You really should zero in on a very good Proxy Server which will help your On the internet Safety.

2. Following you have selected your proxy, you need to configure your Net browser to use it. This procedure is distinct from one particular to an additional browser. If you are employing World wide web Explorer, here is how to install the proxy. Open up Web Explorer, go to Net relationship, click on on connection, choose the appropriate button for LAN or dial-up relationship, and click the settings. Permit use a proxy server, and kind IP of proxy - which you should have pointed out on a paper, ahead of beginning to put in, adopted by port in the respective fields. When you simply click on "Ok" 2 times, you are now having a Proxy Server for On the web Safety.

three. It is not adequate even after you have finished configuring your browser. You just can not forget it. If you have opted for a totally free Proxy, it could not be doing work following some time. Consequently, you should preserve an eye on the proxy, and remain secure. Use Proxy Servers for On the internet Security and it will reduce you of good deal of concerns.

Anonymous said...

eE2X9a http://sneakershopes.webnode.es jV2A6v [url=http://sneakershopes.webnode.es]isabel marant[/url] kR9K4k isabel marant qP8G0g
fI5I1b http://isabelmarantss.1minutesite.es/ vH5J4k [url=http://isabelmarantss.1minutesite.es/]isabel marant[/url] rB0K8x isabel marant fF1O8h
xP5J3r http://onlinesneakers.webnode.fr hY4X5z [url=http://onlinesneakers.webnode.fr ]isabel marant[/url] rB4I9b isabel marant vT4P6m
nE6T1b http://www.longchamppascherer.com wF9X2a [url=http://www.longchamppascherer.com]longchamp soldes[/url] pB6K1o longchamp soldes tG5Y5p
yT6L1g http://headphoneshop.webs.com cY8W5p [url=http://headphoneshop.webs.com]monster beats by dre[/url] dK6F7l monster beats by dre hP0N1f
mV3E9v http://ussneaker.webs.com pW8Z8l [url=http://ussneaker.webs.com]isabel marant[/url] tE5V5n isabel marant boots tA6U8b

Anonymous said...

Ye3Zl8
[url=http://isabellemarant.webstarts.com/isabel_marant_basket_online.html]isabel marant shoes[/url]
[url=http://isabelmarrant.jugem.jp/?eid=3]isabel marant enfant[/url]
[url=http://isabellemarrant.yolasite.com/]boutique isabel marant[/url]
Th4Ya1Eu6Xi4
http://isabellemarant.hpage.co.in/isabel_marant_sneakers_70074134.html
http://isabelmarant01.webnode.fr/isabelle-marant-chaussures-sont-populaires-parce/
http://isabellemarrant.blogsky.com/1391/02/19/post-1/

Anonymous said...

Jj6Gd6
[url=http://www.ussneakershop.350.com/Our_shop_sac_longchamp.htm]soldes sac longchamps[/url]
[url=http://isabelming.blinkweb.com/isabel-marant-fringe-boots.html]sneaker isabel marant[/url]
[url=http://ussneakershop.350.com/]shop shoes[/url]

Fj5Cl8Id6Kf9
http://isableingok.webgarden.com/sections/prix-preferentiel-isabel-marant
http://isabelming.blinkweb.com
http://isabellemarant.2itb.com/index.html

Anonymous said...

As much as it power want to be Las Vegas, casinos, one of which is the; Conrad Jupiters Casino can be Establish in the spunk of Queensland's famous Gold Slide. [url=http://www.onlinecasinoburger.co.uk/]http://www.onlinecasinotaste.co.uk/[/url] http://www.onlinecasinotaste.co.uk/ Does it Experience the Pokergame, Tangkas, Klik4d. 13. http://www.onlinecasinotaste.co.uk/

Anonymous said...

There's a whole range of cosmetic surgery solutions available these days A and almost as many ways to cover them. These services accomplish you to undertake your sudden monetary conditions. Quite a few cosmetic surgery services will allow you to remove a credit history agreement to pay for the cost of your current treatment. instant payday loans -Individual gets the directly to read prejudices regarding the healthcare such individuals less-than-perfect credit or simply no credit at all.

Anonymous said...

The administrative centre return pace of establishments generally stunted at the same time [url=http://www.kkubt.co.uk/]short term loans[/url] short term loans There are many reasons that searchers seek some sort of lump sum renumeration, whether for fast needs or maybe long term goals http://www.lfxgj.co.uk/

Anonymous said...

My brother recommended I would possibly like this website.

He used to be entirely right. This post truly made my day.
You cann't consider simply how much time I had spent for this info! Thanks!

Have a look at my website :: クロエ バッグ

Anonymous said...

Would you be interested by exchanging links?


Look into my blog - クロエ バッグ

Anonymous said...

With havin so much written content do you ever run into any issues of plagorism or copyright infringement?
My website has a lot of exclusive content I've either created myself or outsourced but it looks like a lot of it is popping it up all over the internet without my permission. Do you know any ways to help reduce content from being stolen? I'd certainly appreciate it.


My homepage ... Ray Ban Outlet

Anonymous said...

I'm excited to discover this great site. I wanted to thank you for your time for this wonderful read!! I definitely enjoyed every little bit of it and I have you saved to fav to see new things on your website.

my web blog - nike air max 2012

Anonymous said...

Hi! I know this is kind of off-topic however I needed to ask.
Does building a well-established website such as yours take a massive amount work?
I'm brand new to blogging however I do write in my diary every day. I'd like to start a blog so I
can share my experience and views online. Please let me
know if you have any suggestions or tips for brand new aspiring blog owners.

Appreciate it!

my page; Ralph Lauren Factory Store

Anonymous said...

Howdy! Do you use Twitter? I'd like to follow you if that would be okay. I'm
definitely enjoying your blog and look forward to new updates.


my blog cheap ralph lauren polo

Anonymous said...

Hi there! I just would like to give you a huge thumbs up
for the great information you have got right here on this post.
I will be returning to your site for more soon.


Here is my web blog ... supra skytop

Anonymous said...

Appreciate this post. Let me try it out.

Look into my site: christian louboutin discount

Anonymous said...

So, consider the advantage and click on the rate varies from $100 to find advanced your computer and do some comparison shopping UK Business Angels Association They are comfortable assorted accessories cash loans currently and that is the reason they likewise accede an advantage of 3 month payday loans

Powered By Blogger

Music...