On Fri, Mar 25, 2011 at 8:40 AM, Phani Bhushan Tholeti <[email protected]>wrote:

>  On Fri, Mar 25, 2011 at 01:58, Sudarsan Sridhar <[email protected]>
> wrote:
> > On Thu, Mar 24, 2011 at 23:42, pahnin sd <[email protected]> wrote:
> >>
> >>
> >> On Thu, Mar 24, 2011 at 11:34 PM, etika ahuja <[email protected]>
> >> wrote:
> >>>
> >>> hey
> >>> its a very basic question but iam not getting it right now
> >>> i have to list all the pdf files on my desktop even the  pdf files
> which
> >>> are present in folders on the desktop
> >>>
> >>> ls *.pdf
> >>
> >> this will do
> >>
> >> ls -R|grep .pdf
> >>
> >>>
> >>> only list the files present on the desktop, but not the files in the
> >>> folders on the desktop containing the pdf files.
> >
> > find . -name '*.pdf'
>
> I think it's "*.pdf" and not '*.pdf' ;-), unless its a non bash shell.
> Wish it could be done like this:
> ls -R *.pdf
>
>
>
> >
> > --
> > LUG@IITD - http://lug-iitd.org/Footer
> >
>
>
>
> --
> Lots o' Luv,
> Phani Bhushan
>
> Let not your sense of morals prevent you from doing what is right -
> Isaac Asimov (Salvor Hardin in Foundation and Empire)
>
> Please avoid sending me Word or PowerPoint attachments.
> See http://www.gnu.org/philosophy/no-word-attachments.html
>
> --
> LUG@IITD - http://lug-iitd.org/Footer
>




you can use the command 'tree' for listing the files of current directory
recursively.


-- 
Thanking You
Y.NagaMohan
Integrated Electronics & Circuits ( 2007-09 )
M.Tech, IIT Delhi
+918050786558

-- 
LUG@IITD - http://lug-iitd.org/Footer

Reply via email to