11-11-2012
Quote:
Originally Posted by
RudiC
Interesting result. Hmmm. I'm not sure that cp was exec'ed 881 times in the second case; the + sign will collect all file names as parameters, which you allow for using the @ sign in your script. Could you set the -x shell option and show us what happens?
I must not have been clear about what happened.
In the 1st case cp was invoked 881 times to copy 881 files. In the 2nd case, the shell script CpDest1st was invoked 1 time and it invoked cp 1 time to copy the same 881 files. The cp command line invoked was 65190 bytes long. Even though it is just a list of PDF files preceded by
cp -f and ending with
/Users/dwc/tc1-2008detailed.pdf /Users/dwc/tc1-2008summary.pdf /tmp/pdfdest, I'm not comfortable posting the names of the other 879 PDF files both because this forum is not set up to handle a 65000+ character line length and because the directory structure and file names of files under my home directory is nobody's business but mine.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi all,
i am looking for ways to make ftp efficient by tuning the parameters
currently,
tcp_max_buf is 1 MB
tcp_xmit_hiwat is 48 KB
say to transmit multiple 2 gb files from unix server to mainframe sys,
will increasing the window size or the send buffer size of the current TCP/IP... (6 Replies)
Discussion started by: matrixmadhan
6 Replies
2. Shell Programming and Scripting
Language: ksh
OS: SunOS
I have been getting the 'subscript out of range' error when the below array variable gets elements greater that 1024. I understand that 1024 is the default size for 'set -A' dynamic array, but is there a way to initialize it with a larger number?
set -A arr `grep... (6 Replies)
Discussion started by: ChicagoBlues
6 Replies
3. AIX
Hi,
Does anyone know if it is possible to tar files larger than 2GB? The reason being is they want me to dump a single file (which is around 20GB) to a tape drive and they will restore it on a Solaris box. I know the tar have a limitation of 2GB so I am thinking of a way how to overcome this.... (11 Replies)
Discussion started by: depam
11 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am new to unix , I was planning to write a script that will FTP files to destination folder. , Please guide me what are the various networking commands that unix will help in this ftp process..?:confused: (1 Reply)
Discussion started by: rahul125
1 Replies
5. Programming
Hello!
This is my first post, and I just learned what UNIX was this week. For a JAVA programming class I am taking, I must be able to create a directory in UNIX, use the nano command to create a JAVA program, compile it, and then run it on the command prompt using the java command.
For some... (5 Replies)
Discussion started by: UNdvoItX
5 Replies
6. UNIX for Dummies Questions & Answers
My unzip command doesn't work for files that are greater than 4GB. Consider my file name is unzip -p -a filename.zip, the command doesn't work since the size of the file is larger. I need to know the corresponding 7z command for the same. This is my Unix shell script program:
if
then
... (14 Replies)
Discussion started by: chandraprakash
14 Replies
7. Shell Programming and Scripting
I need to backup my database but the files are very large and the TAR command will not let me. I searched aids and found that I could do something with the mknod, COMPRESS and TAR command using them together. I appreciate your help. (10 Replies)
Discussion started by: frizcala
10 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have one large files of 100000 rows with header column.
Eg:
Emp Code, Emp Name
101,xxx
102,YYY
103,zzz
...
...
I want to split the files into smaller files with only 30000 rows each..File 1,2 and 3 must have 30000 rows and file 4 must contain 10000 rows.
But the column... (1 Reply)
Discussion started by: Nivas
1 Replies
9. UNIX for Beginners Questions & Answers
I need help modifying these two scripts to do the following:
- print files in (MB) instead of (KB)
- only select files larger than 500MB -> these will be mailed out daily
- Select all files regardless of size all in (MB) -> these will be mailed out once a week
this is what i have so far and... (5 Replies)
Discussion started by: donpasscal
5 Replies
10. UNIX for Beginners Questions & Answers
I am new at developing EXPECT scripts. I'm trying to create a script that will automatically connect to a several UNIX (sun solaris and HPUX) database server via FTP and pull the sizes of the listener/alert log files from specified server directory on the remote machines.
1. I want the script... (7 Replies)
Discussion started by: mikebantor
7 Replies
LEARN ABOUT DEBIAN
pdfclean
PDFCLEAN(1) General Commands Manual PDFCLEAN(1)
NAME
pdfclean - pretty print, decompress and garbage collect PDF files
SYNOPSIS
pdfclean [options] input.pdf [output.pdf] [pages]
DESCRIPTION
pdfclean pretty prints and rewrites the contents of a PDF file. If no output file is specified, the new file will be written to "out.pdf"
in the current directory.
OPTIONS
-p password
Use the specified password if the file is encrypted.
-g Garbage collect objects that have no references from other objects. Give the option twice to renumber all objects and compact the
cross reference table. Give it three times to merge and reuse duplicate objects.
-d Decompress streams. This will make the output file larger, but provides easy access for reading and editing the contents with a text
editor.
pages Comma separated list of ranges to clean.
SEE ALSO
mupdf(1), pdfdraw(1). pdfshow(1).
AUTHOR
MuPDF was written by Tor Andersson <tor@ghostscript.com>. MuPDF is Copyright 2006-2010 Artifex Software, Inc.
September 4, 2011 PDFCLEAN(1)