04-17-2009
Find files and display only directory list containing those files
I have a directory (and many sub dirs beneath) on AIX system, containing thousands of file. I'm looking to get a list of all directory containing "*.pdf" file.
I know basic syntax of find command, but it gives me list of all pdf files, which numbers in thousands. All I need to know is, which directory has pdf files, not the name of the files itself.
any help would be appreciated,
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
The system I work on, produces several kinds of status-files in a single directory. I would like to be able to see the files as they are added to this directory.
I was wondering if it would be possible to get a "tail -f" alike view of the ls-command, in such a way that a newly added file is... (4 Replies)
Discussion started by: rschelkers
4 Replies
2. Shell Programming and Scripting
I am trying to find socail security numbers in files in (and under) a specific directory and output a list of the files where they are found... the format would be with no dashes just 9 numeric characters in a row.
I have tried this:
find /DirToLookIn -exec grep '\{9\}' /dev/null {} \; >>... (1 Reply)
Discussion started by: NewSolarisAdmin
1 Replies
3. UNIX Desktop Questions & Answers
hi guys
does anyone know how to display the file paths of the files stored within a directory at the command terminal?
e.g. if i have a directory called "home", how do i display the file paths of the files inside the directory?
cheers (2 Replies)
Discussion started by: Villaman69
2 Replies
4. Shell Programming and Scripting
I will be very grateful if someone can help me with bash shell script that does the following:
I have a list of filenames:
A01_155716
A05_155780
A07_155812
A09_155844
A11_155876
that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
Discussion started by: manishabh
3 Replies
5. Solaris
Display the number of files in a directory and recursively in each subdirectory
To look something like below, for example
/var 35
/var/tmp 56
/var/adm 46
Any ideas how can we do this? :wall: (1 Reply)
Discussion started by: jakerock
1 Replies
6. Solaris
Display the number of files in a directory and recursively in each subdirectory
To look something like below, for example
/var 35
/var/tmp 56
/var/adm 46Any ideas how can we do this?
Got a sun cluser global mount point which takes ages to mount everytime, need to understand... (5 Replies)
Discussion started by: jakerock
5 Replies
7. UNIX for Advanced & Expert Users
Find all files in the current directory only excluding hidden directories and files.
For the below command, though it's not deleting hidden files.. it is traversing through the hidden directories and listing normal which should be avoided.
`find . \( ! -name ".*" -prune \) -mtime +${n_days}... (7 Replies)
Discussion started by: ksailesh1
7 Replies
8. Shell Programming and Scripting
I have have 6 empty directory below. I would like write bash scipt if any files less "1000000000" bytes then move to "/export/home/mytmp/final" folder first and any files greater than "1000000000" bytes then move to final1, final2, final3, final4, final4, final5 and that depend see how many files,... (6 Replies)
Discussion started by: dotran
6 Replies
9. UNIX for Dummies Questions & Answers
Greetings. I know enough Unix to be dangerous (!) and know that there is a clever way to do the following and it will save me about a day of agony (this time) and I will use it forever after! (many days of agony saved in the future)!
Basically
I need to find any image files (JPGs, PSDs etc)... (5 Replies)
Discussion started by: Clyde Lovett
5 Replies
10. Web Development
Hello,
I have been running Ubuntu14.04 + apache2.
000-default.conf:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory... (5 Replies)
Discussion started by: baris35
5 Replies
LEARN ABOUT DEBIAN
qpdfview
QPDFVIEW(1) General Commands Manual QPDFVIEW(1)
NAME
qpdfview - tabbed PDF viewer
SYNOPSIS
qpdfview [options] [file(s)[#page[#top]]]
DESCRIPTION
qpdfview is a simple document viewer for PDF documents. It uses the poppler library for rendering.
OPTIONS
--unique
If an instance of qpdfview is started with this option, any files that are opened using this option afterwards, are opened as tabs
in this same window. If a file is already opened in a tab of the respective window, it is merely reloaded using this option.
[file(s)[#page[#top]]]
Specifies the files to open when qpdfview starts. If this is not specified, qpdfview will open a blank window. Multiple files can be
loaded in separate tabs if the file names are separated by spaces. The optional parameter #page opens the file at the given page.
The optional parameter #top can take values between 0 and 1 and opens the page with the given position aligned to the top of the
tab. (See examples.)
CONFIGURATION FILE
qpdfview uses a configuration file usually located at
"~/.config/qpdfview/qpdfview.conf",
which allows configuration of the toolbars and thumbnails.
The keys "fileToolBar", "editToolBar" and "viewToolBar" are added to the section "mainWindow". Their values are comma-separated lists. The
default (available) entries are:
fileToolBar: openInNewTab, refresh (open, saveCopy, print)
editToolBar: currentPage, numberOfPages, previousPage, nextPage (firstPage, lastPage, jumpToPage, search)
viewToolBar: scaleFactor, zoomIn, zoomOut (onePage, twoPages, oneColumn, twoColumns, fitToPage, fitToPageWidth, doNotScale,
rotateLeft, rotateRight, fullscreen, presentation)
The order of the items in the list defines the order of the items in the toolbar. (See examples.)
Setting the keys "thumbnailWidth" and "thumbnailHeight" in the section "documentView" specifies the size of the thumbnails.
The icon theme used by Qt can be overridden by setting the key "iconTheme" in the section "mainWindow".
EXAMPLES
The command
qpdfview foo.pdf#3#0.5 bar.pdf
opens foo.pdf in the first tab with the middle of page 3 aligned to the top of the tab and bar.pdf in the second tab at the begin-
ning of the document.
Subsequent execution of the following commands
qpdfview --unique foo.pdf bar.pdf
qpdfview --unique foo.pdf#5
opens foo.pdf and bar.pdf, then reloads foo.pdf and displays its page 5.
Subsequent execution of the following commands
qpdfview --unique foo.pdf
qpdfview bar.pdf
qpdfview --unique foo1.pdf bar1.pdf
opens foo.pdf in the first window, bar.pdf in a second window and then foo1.pdf and bar1.pdf in additional tabs in the first window.
Adding the lines
fileToolBar=openInNewTab, refresh, saveCopy, print
editToolBar=firstPage, previousPage, currentPage, numberOfPages, nextPage, lastPage, search
viewToolBar=zoomOut, scaleFactor, zoomIn, oneColumn, twoColumns, rotateLeft, rotateRight
in section "mainWindow" of the configuration file leads to the corresponding items being displayed in the given order in the tool-
bars.
BUGS
If you find a bug, please report it at https://launchpad.net/qpdfview.
AUTHOR
Benjamin Eltzner <b.eltzner@gmx.de>
March 2012 QPDFVIEW(1)