mirror of
				https://git.proxmox.com/git/mirror_iproute2
				synced 2025-11-03 22:57:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			384 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			384 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#! /bin/bash
 | 
						|
# $1 = Temporary file . "string"
 | 
						|
# $2 = File to process . "string"
 | 
						|
# $3 = Page size . ie: a4 , letter ... "string"
 | 
						|
# $4 = Number of pages to fit on a single sheet . "numeric"
 | 
						|
 | 
						|
if type psnup >&/dev/null; then
 | 
						|
	echo "psnup -$4 -p$3 $1 $2"
 | 
						|
	psnup -$4 -p$3 $1 $2
 | 
						|
elif type psmulti >&/dev/null; then
 | 
						|
	echo "psmulti $1 > $2"
 | 
						|
	psmulti $1 > $2
 | 
						|
else
 | 
						|
	echo "cp $1 $2"
 | 
						|
	cp $1 $2
 | 
						|
fi
 |