[LBo] how to list files with full path
Michal
misko at gmx.co.uk
Mon Dec 18 20:08:32 CET 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
>> Do you need the '-R'?
I am sorry, i tried to solve it with ls as well:
ls -R | grep .mp3
but there is not a path, just file name.
>>> ./album/song.mp3 instead of /home/something/album/song.mp3
I know that if I give as argument absolute path it will give me result
as I want, but I want to make a script that will create in play list
with absolute paths all mp3s in directory where is the script called from.
I also tried something like this but I was not successful:
#!/bins/bash
mypath= pwd
find $mypath -name "*.mp3" > playlist.pls
Best regards
Michal
Jim Westbrook wrote:
> Anita Lewis wrote:
>
>> Michal wrote:
>>
>>
>>
>>> 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
>>>
>>
>> I would try
>>
>> find /home/something/ "*.mp3"
>>
>> Do you need the '-R'?
>>
>>
>>
> No, he doesn't. It'll cause an error (invalid predicate, I think).
>
> JimW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)
iD8DBQFFhucwD8bCra3vMyQRAjwYAJ9eG4Vc66leo19jz3GniX8yi+q9MACdG7oB
KtcsqSEYZ4MJicFnJgmGeLQ=
=XeX6
-----END PGP SIGNATURE-----
More information about the QnA
mailing list