Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-24-2011, 01:10 PM   #1
Registered: Dec 2010
Posts: 38

Rep: Reputation: 0
listing pdf files in a folder on the desktop

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
only list the files present on the desktop, but not the files in the folders on the desktop containing the pdf files.
Old 03-24-2011, 02:20 PM   #2
LQ Guru
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003
I noticed you marked your thread as solved, but you didn't edit your thread to explain that you have figured out your problem. Are you still having trouble?
Old 03-24-2011, 02:22 PM   #3
LQ Newbie
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
try ls -LR | grep *.pdf
Old 03-25-2011, 04:04 AM   #4
Registered: Dec 2010
Posts: 38

Original Poster
Rep: Reputation: 0
ls -R|grep .pdf
this command solved my problem
but now iam having problem in putting this output in an array


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
desktop publishing and creating pdf files marie-p Linux - Software 8 09-27-2009 05:52 PM
Proftpd+SSL/TLS no folder listing g0ug0u Linux - Software 3 11-30-2007 11:30 AM
Problem listing huge folder vivhost Fedora 1 12-14-2005 05:21 AM
Files in Desktop folder don't appear on Desktop hand of fate Linux - Software 3 10-04-2005 12:24 PM
How do I unpack pdf.pdf files corbis_demon Linux - General 5 10-29-2004 09:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration