[LBo] how to list files with full path

Chris F.A. Johnson cfaj at freeshell.org
Mon Dec 18 20:47:14 CET 2006


On Mon, 18 Dec 2006, Michal wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>  I would like to ask for help with listing files with full {absolute} path.
>
> I need to list directories recursively and filter only *.mp3 files.
>
> I have tried:
>> find . -name "*.mp3" -R
> that is what I would like to do, except that result is relative to the .
> dir eg:
> ../album/song.mp3 instead of /home/something/album/song.mp3

find "$PWD" -name "*.mp3"

-- 
    Chris F.A. Johnson                      <http://cfaj.freeshell.org>
    ===================================================================
    Author:
    Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)


More information about the QnA mailing list