View Single Post
  #4   (View Single Post)  
Old 29th April 2011
sharris sharris is offline
Package Pilot
 
Join Date: Jun 2010
Posts: 146
Default

I think I just wasted two semesters trying to get to know C++, boost, etc. When those forums give you a hint your on your own for any other week/month/years, with-out a clue writing a full-blown program for what these one-liners already did/done/case-close ...

There are no directories in /rescue but both will output [1] *OR* always output one extra to a count if called with-in a directory or sub-directory. It add a count of one for itself. I can live with that

Code:
find /rescue -type d -print | wc -l
Code:
find /rescue/ -type d -print | wc -l

If you call this a hint what could possibly works better? Or is it the new FreeBSD current?

Code:
$ ls -l | grep ^d
From with-in any directory it gave me as root a complete/exact list of all directories in a partition or directory ... WoW!

Thanks guys
Reply With Quote