LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-24-2011, 02:10 PM   #1
etika
Member
 
Registered: Dec 2010
Posts: 38

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


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
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, 03:20 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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, 03:22 PM   #3
IamCrunchy
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
try ls -LR | grep *.pdf
 
Old 03-25-2011, 05:04 AM   #4
etika
Member
 
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
 
  


Reply


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 06:52 PM
Proftpd+SSL/TLS no folder listing g0ug0u Linux - Software 3 11-30-2007 12:30 PM
Problem listing huge folder vivhost Fedora 1 12-14-2005 06:21 AM
Files in Desktop folder don't appear on Desktop hand of fate Linux - Software 3 10-04-2005 01:24 PM
How do I unpack pdf.pdf files corbis_demon Linux - General 5 10-29-2004 10:12 PM


All times are GMT -5. The time now is 03:39 PM.

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