Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Compare two directory and find differents Post 303045829 by RudiC on Tuesday 14th of April 2020 11:48:32 AM
Old 04-14-2020
Good find, but: it will run 9 external commands and thus use approx. the fivefold time, and, as is, it won't confine itself on .doc[x]? and .pdf files.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Directory compare script

Hello, I am looking for a script, or pointer to an approach to creating a script, that will compare two versions of a codebase and output a third directory structure containing only the files that differ between the two. I use diff quite often, but it will only create patch files (AFAIK). Does... (3 Replies)
Discussion started by: jwilliams108
3 Replies

2. Shell Programming and Scripting

Script That Can navigate to 3 differents directory & remove files under them

Hi I am Trying to Write a script that can goto 4 different directorys on the server & remove the Files older then 30 days ?? /logs logs1 logs2 logs3 Now I need to remove files under logs1 logs2 logs3 which are older then 30 days whose name stat 'sit' , 'mig','bld' . in... (3 Replies)
Discussion started by: Beginner123
3 Replies

3. Shell Programming and Scripting

How i can obtain differents data on a single pass?

#!/bin/bash for i in `ls -c1 /usr/share/applications` do #name=`cat /usr/share/applications/$i | grep ^Name= | cut -d = -f2` #categories=`cat /usr/share/applications/$i | grep ^Categories= | sed 's/;/=/g' | cut -d = -f2` name=$(grep ^Name= /usr/share/applications/$i | cut -d = -f2)... (12 Replies)
Discussion started by: alexscript
12 Replies

4. Shell Programming and Scripting

Compare new version of two directory

How to compare new version exist of two path directory. for e.g., path1 - /user/path/test/ path2 - /user/path/score/ If its exist new version then copy that new version into the first path directroy. How will do this. (3 Replies)
Discussion started by: roy1912
3 Replies

5. Shell Programming and Scripting

Extract sequences of bytes from binary for differents blocks

Hello to all, I would like to search sequences of bytes inside big binary file. The bin file contains blocks of information, each block begins is estructured as follow: 1- Each block begins with the hex 32 (1 byte) and ends with FF. After the FF of the last block, it follows 33. 2- Next... (59 Replies)
Discussion started by: Ophiuchus
59 Replies

6. Shell Programming and Scripting

Find every directory named XYZ under the DVLP directory

I only want to find files under each branch of the directory tree inside directories named XYZ and there are multiple XYZ directories? (7 Replies)
Discussion started by: emc^24sho
7 Replies

7. Programming

Query SQL get two values differents from the same columns

Hi, I have 2 different values in the same column and two different values in other column Query 1 ins name value 1 Test 12345 1 TestV1 12/10/2014 8 Test 85435 8 TestV1 11/11/2005 9 Test 42232 9 TestV1 19/10/2000 6 Test 54321... (6 Replies)
Discussion started by: faka
6 Replies

8. Shell Programming and Scripting

awk - matching on 2 columns for differents lines

Given this file (I separated them in block to make my explanation clearer): 92157768877;Sof_deme_Fort_Email_am_%yyyy%%mm%%dd%;EMAIL;20/02/2015;1;0;0 92157768877;Sof_trav_Fort_Email_am_%yyyy%%mm%%dd%;EMAIL;20/02/2015;1;0;0 91231838895;Sof_deme_faible_Email_am;EMAIL;26/01/2015;1 0;0... (1 Reply)
Discussion started by: Andy_K
1 Replies

9. Shell Programming and Scripting

Compare directory dates

hi, I need to know if a specific directory exists in a folder named after the date of yesterday (02/06/2015) The problem is simple but not how to do it. :confused:i= date -d "yesterday" '%Y-%m-%d' <- the format of directory is 2015-06-02 if in /var/logroot/index exist directory whit... (4 Replies)
Discussion started by: tmeto
4 Replies

10. UNIX for Beginners Questions & Answers

How to find and get a file in an entire directory with an excluded directory specified?

How to get a file 'zlib.h' in an entire directory with an excluded directory specified lives under that starting directory by using find command, as it failed on: $ find . -name 'zlib.h' -a -ipath 'CHROME.TMP' -prune -o -print it'll just list entirely up (2 Replies)
Discussion started by: abdulbadii
2 Replies
pdfposter(1)															      pdfposter(1)

NAME
pdfposter - Scale and tile PDF images/pages to print on multiple pages. SYNOPSIS
pdfposter <options> infile outfile DESCRIPTION
Pdfposter can be used to create a large poster by building it from multple pages and/or printing it on large media. It expects as input a PDF file, normally printing on a single page. The output is again a PDF file, maybe containing multiple pages together building the poster. The input page will be scaled to obtain the desired size. The program uses a simple but efficient method which is possible with PDF: All new pages share the same data stream of the scaled page. Thus resulting file grows moderatly. To control its operation, you need to specify either the size of the desired poster or a scale factor for the image: o Given the poster size, it calculates the required number of sheets to print on, and from that a scale factor to fill these sheets opti- mally with the input image. o Given a scale factor, it derives the required number of pages from the input image size, and positions the scaled image centered on this area. OPTIONS
General Options --version Show program's version number and exit -h , --help Show help message and exit --help-media-names List available media and disctance names and exit -v , --verbose Be verbose. Tell about scaling, rotation and number of pages. Can be used more than once to increase the verbosity. -n , --dry-run Show what would have been done, but do not generate files. Defining Output -m BOX, --media-size=BOX Specify the desired media size to print on. See below for BOX. The default is A4 in the standard package. -p BOX, --poster-size=BOX Specify the poster size. See below for BOX. pdfposter will autonomously choose scaling and rotation to best fit the input onto the poster (see EXAMPLES below). If you give neither the -s nor the -p option, the default poster size is identical to the media size. -s NUMBER Specify a linear scaling factor to produce the poster. Together with the input image size and optional margins, this induces an output poster size. So don't specify both -s and -p. Default is deriving the scale factor to fit a given poster size. Box Definition The BOX mentioned above is a specification of horizontal and vertical size. The syntax is as follows (with multipier being specified optionally): box = [ multiplier ] unit multiplier = number "x" number unit = medianame or distancename Many international media names are recognised by the program, in upper and lower case, and can be shortened to their first few characters, as long as unique. For instance 'A0', 'Let'. Distance names are like 'cm', 'inch', 'ft'. Medias are typically not quadratic but rectangular, which means width and hight differ. Thus using medianames is a bit tricky: 10x20cm obviuos: 10 cm x 20 cm (portrait) 20x10cm same as 10x20cm, since all boxes are rotated to portrait format Now when using medianames it gets tricky: 1x1a4 same as approx. 21x29cm (21 cm x 29 cm, portrait) 1x2a4 same as approx. 21x58cm (21 cm x 58 cm, portrait) This are two a4 pages put together at the small side: One portrait page wide and two portrait pages high. 2x1a4 same as approx. 42x29cm, which is rotated to portrait and is the same a 29x42cm (29 cm x 42 cm) This are two a4 pages put together at the long side: Two portrait pages wide and one portrait page high. EXAMPLES
pdfposter -mA3 -pA0 a4.pdf out.pdf Prints an A4 input file on 8 A3 pages, forming an A0 poster. pdfposter -p3x3Let a4.pdf out.pdf Prints an inputfile on a poster of 3x3 Letter pages. pdfposter -mA0 input.pdf out.pdf Enlarges an inputfile to print on a large-media A0 capable device. pdfposter -s4 input.pdf out.pdf Enlarge an inputfile exactly 4 times, print on the default A4 media, and let pdfposter determine the number of pages required. pdfposter -m10x10cm -pa0 a4.pdf out.pdf Just to show how efficient pdfposter is: This will create a file containing 192 pages, but only 15 times as big as the single page. With a4.pdf being a quite empty page, this ratio should be even better for filled pages. More examples including sample pictures can be found at http://pdfposter.origo.ethz.ch/wiki/examples Examples for automatic scaling o For printing 2 portrait A4 pages high (approx. 58cm) and let pdfposter determine how many portrait pages wide, specify a lage number of vertical pages. eg: pdfposter -p999x2a4 testpage-wide.pdf out.pdf o For printing 2 landscape A4 pages high (approx. 20cm) and let pdfposter determine how many landscape pages wide, specify a lage number of horizontal pages. eg: pdfposter -p2x999a4 testpage-wide.pdf out.pdf SEE ALSO
poster(1) Project Homepage http://pdfposter.origo.ethz.ch/ AUTHOR
Hartmut Goebel <h.goebel@goebel-consult.de> COPYRIGHT
GNU Public Licence v3 (GPLv3) Version 0.4.4 pdfposter(1)
All times are GMT -4. The time now is 07:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy