10-10-2008
Thanks very much! Now it works. Any one question: how can I select pages which I want to print out. Like I have 10 pages and I just want to print 1st, 3rd page, how can I do. By the way, -o<option> doesn't work.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
cat .servers | while read LINE; do
ssh jason@$LINE $1
done
exit 1
./command.ksh "ls -l ~jason"
Why does this ONLY iterate on the first server in the list? It's not doing the command on all the servers in the list, what am I missing?
Thanks!
JP (2 Replies)
Discussion started by: jpeery
2 Replies
2. UNIX for Dummies Questions & Answers
it seams that my ctrl+c and my ctrl+d don't work. if I type a bunch of jiberish on a line and ctrl+c I expect the command to be cancelled and to be given a fresh prompt, but instead it just putts ^C at the end of the line.
Also, ctrl+d should close the session, but instead mine just puts ^D at... (3 Replies)
Discussion started by: yankee428
3 Replies
3. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
4. Shell Programming and Scripting
I have a script which uses below for loop:
for (( i = 0 ; i <= 5; i++ ))
do
echo "Welcome $i times"
done
But when I run the script, it gives error message:
Syntex Error : Bad for loop variable
Can anyone guide to run it?
Thanks in advance. (10 Replies)
Discussion started by: naw_deepak
10 Replies
5. UNIX for Dummies Questions & Answers
# uname -a
Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
# useradd 4141421248
useradd: invalid user name '4141421248'
why??? (6 Replies)
Discussion started by: cqlouis
6 Replies
6. Shell Programming and Scripting
Hi!
I have a somehow big file (almost 3000 lines long and thirteen columns). Some lines have no value at all or, at least, are incomplete. The columns' values that have no data are marked with a "-" and the corresponding line (the line that owns that value) should be discarded and not used.
... (5 Replies)
Discussion started by: Marcelo de Brit
5 Replies
7. UNIX for Dummies Questions & Answers
find . -name "05_scripts" -type d -exec mv -f {}/'*.aep\ Logs' {}/.LogFiles \;
Returns this failure:
mv: rename ./019_0120_WS_WH_gate_insideTEST/05_scripts/*.aep\ Logs to ./019_0120_WS_WH_gate_insideTEST/05_scripts/.LogFiles/*.aep\ Logs: No such file or directory
I don't know why it's trying... (4 Replies)
Discussion started by: scribling
4 Replies
8. Shell Programming and Scripting
root@SDP_Wildcat_Pass-3-C1:~# cat /proc/driver/rtc
rtc_time : 05:29:40
rtc_date : 2014-12-19
alrm_time : 01:51:53
alrm_date : 2014-12-20
alarm_IRQ : no
alrm_pending : no
update IRQ enabled : no
periodic IRQ enabled : no
periodic IRQ... (4 Replies)
Discussion started by: yanglei_fage
4 Replies
9. Shell Programming and Scripting
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
Discussion started by: ab_2010
3 Replies
LEARN ABOUT PHP
postreverse
postreverse(1) User Commands postreverse(1)
NAME
postreverse - reverse the page order in a PostScript file
SYNOPSIS
postreverse [-o list] [-r] [file]
/usr/lib/lp/postscript/postreverse
DESCRIPTION
The postreverse filter reverses the page order in files that conform to Adobe's Version 1.0 or Version 2.0 file structuring conventions,
and writes the results on the standard output. Only one input file is allowed and if no file is specified, the standard input is read.
The postreverse filter can handle a limited class of files that violate page independence, provided all global definitions are bracketed by
%%BeginGlobal and %%EndGlobal comments. In addition, files that mark the end of each page with %%EndPage: label ordinal comments will also
reverse properly, provided the prologue and trailer sections can be located. If postreverse fails to find an %%EndProlog or %%EndSetup com-
ment, the entire file is copied, unmodified, to the standard output.
Because global definitions are extracted from individual pages and put in the prologue, the output file can be minimally conforming, even
if the input file was not.
OPTIONS
-o list Select pages whose numbers are given in the comma-separated list. The list contains single numbers N and ranges N1 - N2. A missing
N1 means the lowest numbered page, a missing N2 means the highest. The page range is an expression of logical pages rather than
physical sheets of paper. For example, if you are printing two logical pages to a sheet, and you specified a range of 4, then two
sheets of paper would print, containing four page layouts. If you specified a page range of 3-4, when requesting two logical pages
to a sheet; then only page 3 and page 4 layouts would print, and they would appear on one physical sheet of paper.
-r Do not reverse the pages in file.
EXAMPLES
Example 1: Examples of postreverse.
o select pages 1 to 100 from file and reverse the pages:
example% postreverse -o1-100 file
To print four logical pages on each physical page and reverse all the pages:
example% postprint -n4 file | postreverse
To produce a minimally conforming file from output generated by dpost without reversing the pages:
example% dpost file | postreverse -r
EXIT STATUS
The following exit values are returned:
0 Successful completion.
non-zero An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpsf |
+-----------------------------+-----------------------------+
SEE ALSO
download(1), dpost(1), postdaisy(1), postdmd(1), postio(1), postmd(1), postprint(1), posttek(1), attributes(5)
NOTES
No attempt has been made to deal with redefinitions of global variables or procedures. If standard input is used, the input file will be
read three times before being reversed.
SunOS 5.10 9 Sep 1996 postreverse(1)