IT

find command with wc (word count)

Using the find command with wc (word count) you can see a) total files b) just files c) just links and d) just directories.

bash-3.00# find ./aboobas2 |wc -l

474

bash-3.00# find ./aboobas2 -type f |wc -l

12

bash-3.00# find ./aboobas2 -type d |wc -l

356

bash-3.00# find ./aboobas2 -type l |wc -l

106

Advertisements

Categories: IT, Unix Linux General, Unix Scripts

Tagged as:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s