« March 2006 | Main | May 2006 »

April 25, 2006

Find examples

find examples is a cool page. It gives some real world examples of how to use the find command.

real world FIND usage


sudo find / -type f -name *.jpg -exec cp {} . \;

find . -type f -size +10000 -exec ls -al {} \;
find . -atime +1 -type f -exec mv {} TMP \; # mv files older then 1 day to dir TMP
find . -name "-F" -exec rm {} \; # a script error created a file called -F
find . -exec grep -i "vds admin" {} \;
find . \! -name "*.Z" -exec compress -f {} \;
find . -type f \! -name "*.Z" \! -name ".comment" -print | tee -a /tmp/list
find . -name *.ini
find . -exec chmod 775 {} \;
find . -user xuser1 -exec chown -R user2 {} \;
find . -name ebtcom*
find . -name mkbook
find . -exec grep PW0 {} \;
find . -exec grep -i "pw0" {} \;
find . -atime +6
find . -atime +6 -exec ll | more
find . -atime +6 -exec ll | more \;
find . -atime +6 -exec ll \;
find . -atime +6 -exec ls \;
find . -atime +30 -exec ls \;
find . -atime +30 -exec ls \; | wc -l
find . -name auth*
find . -exec grep -i plotme10 {};
find . -exec grep -i plotme10 {} \;
find . -ls -exec grep 'PLOT_FORMAT 22' {} \;
find . -print -exec grep 'PLOT_FORMAT 22' {} \;
find . -print -exec grep 'PLOT_FORMAT' {} \;
find . -print -exec grep 'PLOT_FORMAT' {} \;
find ./machbook -exec chown 184 {} \;
find . \! -name '*.Z' -exec compress {} \;
find . \! -name "*.Z" -exec compress -f {} \;
find /raid/03c/ecn -xdev -type f -print
find /raid/03c/ecn -xdev -path -type f -print
find / -name .ssh* -print | tee -a ssh-stuff
find . -name "*font*"
find . -name hpmcad*
find . -name *fnt*
find . -name hp_mcad* -print
find . -grep Pld {} \;
find . -exec grep Pld {} \;
find . -exec grep Pld {} \;
find . -exec grep PENWIDTH {} \; | more
find . -name config.pro
find . -name config.pro
find /raid -type d ".local_sd_customize" -print
find /raid -type d -name ".local_sd_customize" -print
find /raid -type d -name ".local_sd_customize" -ok cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \;
find /raid -type d -name ".local_sd_customize" -exec cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \;
find . -name xeroxrelease
find . -exec grep xeroxrelease {} \;
find . -name xeroxrelease
find . -name xeroxrelease* -print 2>/dev/null
find . -name "*release*" 2>/dev/null
find / -name "*xerox*" 2>/dev/null
find . -exec grep -i xeroxrelease {} \;
find . -print -exec grep -i xeroxrelease {} \;
find . -print -exec grep -i xeroxrelease {} \; > xeroxrel.lis
find . -exec grep -i xeroxrel {} \;
find . -print -exec grep -i xeroxrel {} \;
find . -print -exec grep -i xeroxrel {} \; | more
find /raid/03c/inwork -xdev -type f -print >> /raid/04d/user_scripts/prt_list.tmp
find . -exec grep '31.53' {} \;
find . -ls -exec grep "31/.53" {} \; > this.lis
find . -print -exec grep "31/.53" {} \; > this.lis
find . -print -exec grep 31.53 {} \; > this.lis
find . -exec grep -i pen {} /;
find . -exec grep -i pen {} \;
find . -print -exec grep -i pen {} \; | more
find . -exec grep -i pen {} \;
find . -atime +6 -exec ll | more \;
find . -atime +6 -exec ll \;
find . -atime +6 -exec ls \;
find . -atime +30 -exec ls \;
find . -atime +30 -exec ls \; | wc -l
find . \! -name '*.Z' -exec compress -f {} \;
find . -name 'cache*' -depth -exec rm {} \;
find . -name 'cache*' -depth -print | tee -a /tmp/cachefiles
find . -name 'cache[0-9][0-9]*' -depth -print | tee -a /tmp/cachefiles
find . -name 'hp_catfile' 'hp_catlock' -depth -print | tee -a /tmp/hp.cats
find . -name 'hp_catfile' -name 'hp_catlock' -depth -print | tee -a /tmp/hp.cats
find . -name 'hp_cat*' -depth -print | tee -a /tmp/hp.cats
find . -name 'hp_cat[fl]*' -depth -print | tee -a /tmp/hp.cats
find /raid -name 'hp_cat[fl]*' -depth -print
find . \! -name '*.Z' -exec compress -f {} \;
find . -name '*' -exec compress -f {} \;
find . -xdev -name "wshp1*" -print
find . -xdev -name "wagoneer*" -print
find . -name "xcmd" -depth -print
find /usr/contrib/src -name "xcmd" -depth -print
find /raid -type d -name ".local_sd_customize" -exec ls {} \;
find /raid -type d -name ".local_sd_customize" \
-exec cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \;

wagoneers.com
Select pages from WAGONEERS.COM:
the Full Size Jeep decal! © 1998-2000 John Meister
Buy this FSJ decal... ...use PayPal to pay for it!
Make payments with PayPal, or sign up here!

a viable option to bloated and unstable code

AMSOIL synthetic lubricants and filters
(please use customer #283461)
Independent Lifetime Dealer John Meister - customer #283461 - since 1983
Shop AMAZON.com from wagoneers.com!
Search:
Keywords:
SHOP from wagoneers.com: in Association with Amazon.com

these pages protected by US Copyright laws
John Meister copyright © 1995-2001 all rights reserved
contact john-at-wagoneers.com "Join the fight against spam (UCE)! Eliminate spam!" Washington State has a $500 fine for "spam"
(unsolicited commercial email)!
this is an approved Family-Friendly Site read the Bible

Ipod battery ideas

Playlist: Prolong iPod battery life

I hate rechargable batteries. They never last as long as advertised.

April 24, 2006

XP Driver CD

Virtually all current XP drivers on one CD - Download Squad

April 17, 2006

15 security tools

Top 15 Security/Hacking Tools & Utilities »

I have used most of these, but several of these are new to me.

April 15, 2006

A Prayer

Dear Lord,

Thank you for loving me though I deserve it not,
Thank you for healing me though I deserve it not,
Thank you for fufiling me though I deserve it not,
Thank you for guiding me though I deserve it not,
Thank you for forgiving me though I deserve it not,

In the days, weeks, months, or years ahead please fill me with Your Spirit, and give me the strength and wisdom to do Your will in all things.

Amen

April 13, 2006

Static routes

nixCraft: Configuring static routes in Debian or Red Hat Linux systems is a great article about static routes. The syntax always drives me nuts.

April 10, 2006

Rainbow

I saw a rainbow
Oer the new shopping center
The kids stared quietly

April 09, 2006

k9copy

Flavor 8 » How To: Back up your DVDs in Ubuntu

April 07, 2006

Latin fun

Common Latin Phrases because you never know when you need the power of latin...

April 06, 2006

Python pefr tips

PythonSpeed/PerformanceTips is a good guide to optimizing your python code to be more efficient.

YA cheatsheet

SS64.com has a set of command line cheatsheets for Oracle, windows, OS X, and Linux. This looks nice.

April 01, 2006

iFolder howto

HowTos - iFolder

iFolder is a web sharing technology from Novell.

iFolder allows you to access, organize, and manage your files from anywhere, anytime. iFolder also provides worry-free security, ensuring that all your files are always safe, secure and up to date. Now your files can be as mobile as you are — at work, home or on the go.