04-28-2008
Finding cumulative size of files older than certain days
Hi All,
I've got a ton of files in a particular directory. I want to find pdf files older than 30 days in that directory and then the cumulative size of those files.
Ex:
find /home/jk/a -name "*.pdf" -mtime +30
consider it finds the below 4 files.
/home/jk/a/1.pdf
/home/jk/a/2.pdf
/home/jk/a/3.pdf
/home/jk/a/4.pdf
now I want to know the total size of these 4 files. Any help would be appreciated.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I will like to write a script that delete all files that are older than 7 days in a directory and it's subdirectories. Can any one help me out witht the magic command or script?
Thanks in advance,
Odogboly98:confused: (3 Replies)
Discussion started by: odogbolu98
3 Replies
2. Shell Programming and Scripting
Hi
When trying to find and delete files which are, say, 1 day, the find command misses a day. Please refer the following example.
xxxd$ find . -type f -ctime +1 -exec ls -ltr {} \;
total 64
-rw-rw-r-- 1 oracle xxxd 81 Apr 30 11:25 ./ful_cfg_tmp_20080429_7.dat
-rw-rw-r-- 1... (4 Replies)
Discussion started by: guruparan18
4 Replies
3. UNIX for Dummies Questions & Answers
This is driving me crazy. How can I delete files in a specifc directory that are over 30 days old? Thanks in advance. (3 Replies)
Discussion started by: tlphillips
3 Replies
4. Shell Programming and Scripting
Hello all,
Here's the deal...I have one directory with many subdirs and files.
What I want to find out is who is keeping old files and directories...say files and dirs that they didn't use since a number of n days, only one level under the initial dir. Output to a file.
A script for... (5 Replies)
Discussion started by: ejianu
5 Replies
5. Shell Programming and Scripting
Hello,
Motive: Search all directories which are older than 5 days.
Example: consider following directory structure:
abc/dir1 abc/dir1/dir abc/dir2 abc/dir3 abc/dir3/temp
Suppose dir1 and dir3 are 5 days older. Then I am looking for a command which lists abc/dir1 and abic/dir3 only so that... (4 Replies)
Discussion started by: mytempid07
4 Replies
6. UNIX for Advanced & Expert Users
Hi,
on AIX 6.1,
is there any commande line to remove the files older than n days in a directory ?
Thanks. (2 Replies)
Discussion started by: big123456
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
OS :- HP-UX wm5qa B.11.23 U ia64 1119805695 unlimited-user license
I need to search files older than 50 days. I've used following command in order to search desired files, I also discoverd, it's showing today's files as well. Do you have any clue with this ?
wmqa1> find .... (4 Replies)
Discussion started by: alok.behria
4 Replies
8. UNIX for Dummies Questions & Answers
Hi
I want to find the total space used by the files which are older than x days
find ./ -type f -mtime +x-days -name "G00*" -exec du {} \; | awk '{total+=$1}END{print "TOTAL" total}'
Total prints as 17.20 MB ( total / 1024*2 )
But actual size of it will be around 18.5 GB... (1 Reply)
Discussion started by: rakeshkumar
1 Replies
9. Shell Programming and Scripting
Hello all,
I want to list the files older than 10 days. Currently am using
find ./ -mtime +10 -exec ls -ltr {} \;
command. But I want to execute the same command in 16 directories at a time and want an output asking to remove those file?
Please help me to design the script.
regards,
Ajay (3 Replies)
Discussion started by: 02Ajay
3 Replies
10. Linux
Hi,
I am trying to run a command that finds all files over x amount of days, issue is one of the directories has spaces within it.
find /files/target directory/*/* -type f -mtime +60 When running the above the usual error message is thrown back
+ find '/files/target\' 'directory/*/*' -type... (1 Reply)
Discussion started by: Ads89
1 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)