14.06.2014 Views

Unix Power Tools

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8.7 Some GNU ls Features 161<br />

8.8 A csh Alias to List Recently Changed Files 162<br />

8.9 Showing Hidden Files with ls –A and –a 163<br />

8.10 Useful ls Aliases 163<br />

8.11 Can’t Access a File? Look for Spaces in the Name 165<br />

8.12 Showing Nonprintable Characters in Filenames 166<br />

8.13 Counting Files by Types 167<br />

8.14 Listing Files by Age and Size 168<br />

8.15 newer: Print the Name of the Newest File 169<br />

8.16 oldlinks: Find Unconnected Symbolic Links 169<br />

8.17 Picking a Unique Filename Automatically 170<br />

9. Finding Files with find . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171<br />

9.1 How to Use find 171<br />

9.2 Delving Through a Deep Directory Tree 173<br />

9.3 Don’t Forget –print 175<br />

9.4 Looking for Files with Particular Names 175<br />

9.5 Searching for Old Files 175<br />

9.6 Be an Expert on find Search Operators 176<br />

9.7 The Times That find Finds 178<br />

9.8 Exact File-Time Comparisons 179<br />

9.9 Running Commands on What You Find 179<br />

9.10 Using –exec to Create Custom Tests 181<br />

9.11 Custom –exec Tests Applied 182<br />

9.12 Finding Many Things with One Command 182<br />

9.13 Searching for Files by Type 184<br />

9.14 Searching for Files by Size 185<br />

9.15 Searching for Files by Permission 185<br />

9.16 Searching by Owner and Group 186<br />

9.17 Duplicating a Directory Tree 187<br />

9.18 Using “Fast find” Databases 187<br />

9.19 Wildcards with “Fast find” Database 189<br />

9.20 Finding Files (Much) Faster with a find Database 190<br />

9.21 grepping a Directory Tree 192<br />

9.22 lookfor: Which File Has That Word? 193<br />

9.23 Using Shell Arrays to Browse Directories 194<br />

9.24 Finding the (Hard) Links to a File 197<br />

9.25 Finding Files with –prune 198<br />

9.26 Quick finds in the Current Directory 199<br />

Table of Contents<br />

vii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!