[X-Unix] Finding Parent Directory of Searched-For File
Scott
scott-xlists at scotist.com
Mon May 4 08:58:48 PDT 2009
On May 3, 2009, at 10:02 PM, Rick Gordon wrote:
> How would I do a recursive search that will provide a path to the
> parent folder of a searched-for file?
>
> For instance, this command will find the file in a recursive search,
> but it provides no information on the path to that file:
>
> (starting from a suitable starting place)
> ls -Rl | grep "Bookmarks.plist"
>
> -rw-rw-rw- 1 mobile mobile 100934 May 3 20:37 Bookmarks.plist
> -rw-rw-rw- 1 mobile mobile 143 Apr 30 22:12
> Bookmarks.plist.anchor.plist
> -rw-rw-rw- 1 root mobile 203551 Apr 9 09:00 Bookmarks.plist.bup
Obsidius:~ scott$ find ./ -name Bookmarks.plist -print
.//Library/Safari/Bookmarks.plist
Obsidius:~ scott$ find ./ -name Book\* -print
.//Library/Caches/Metadata/Safari/Bookmarks
.//Library/Fonts/Book Antiqua
.//Library/Fonts/Bookman Old Style
.//Library/Safari/Bookmarks.plist
More information about the X-Unix
mailing list