Mostly Linux & Python syntax notes and hyperlinks.

Friday, August 14, 2009

find syntax

from http://www.athabascau.ca/html/depts/compserv/webunit/HOWTO/find.htm#EX01:

find . -name "filename" -print

This command will search in the current directory and all sub directories for a file named filename.

1 comment:

  1. Sometimes I can't remember the exact name of the file..or I'm too lazy to type the whole thing, so I have this alias defined in my environment:

    alias fig='find . -print | grep -i '

    usage:

    fig foo

    ReplyDelete