print option - drop 1 line


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting print option - drop 1 line
# 1  
Old 11-03-2011
print option - drop 1 line

Hi,

Is there a print option to drop the data 1 line?

Basically the page is too close to the top of the page and I would like to drop it one line automatically, editing the actual data is complicated.
# 2  
Old 11-03-2011
As in, output on a printer? pr may help.
# 3  
Old 11-03-2011
I have been considering sed -i as well but unfortunately I am sending the command via an application not the terminal and I was hoping one of the lp -o options would help?

I have tried
-o page-top=5 filename

without success
# 4  
Old 11-03-2011
what command are you using?
did you look at the man pages of your printing command?
For instance on HP-UX using lp command, I use -otl 66
# 5  
Old 11-03-2011
-o specifies printer-dependent (or driver-dependent) settings. They're not universal.

To figure out what options you had available, we'd need to know your printer, printer daemon, printer driver, and system.
# 6  
Old 11-03-2011
Using cups, printer is a HP laserjet 2430 using postscript driver this time.

This server is RHEL5.6
# 7  
Old 11-03-2011
Doesn't say what command you use to print
Here is from lp using CUPS on AIX:
Quote:
-o page-bottom=N

-o page-left=N

-o page-right=N

-o page-top=N
Sets the page margins when printing text files. The
values are in points - there are 72 points to the inch.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl command line option '-n','-p' and multiple files: can it know a file name of a printed line?

I am looking for help in processing of those options: '-n' or '-p' I understand what they do and how to use them. But, I would like to use them with more than one file (and without any shell-loop; loading the 'perl' once.) I did try it and -n works on 2 files. Question is: - is it possible to... (6 Replies)
Discussion started by: alex_5161
6 Replies

2. Shell Programming and Scripting

Need Menu option each on a new line

Here is my script for the menu options. # Bash Menu Script Example PS3='Please enter your choice: ' options=("Option 1:" "Option 2:" "Other Reason:" "Quit") select opt in "${options}" do case $opt in "Option 1 :") echo "you chose choice 1" ;; ... (3 Replies)
Discussion started by: mohtashims
3 Replies

3. Shell Programming and Scripting

Diff option to get line number

Hi, I am using the below command to get the diff output of two files. Here in the output file, I wish to add line number in front of each line starting position. Please suggest the diff options or some command line utilities. diff -y file1.txt file2.txt --width=300 > diff_f1_f2_300.txt... (5 Replies)
Discussion started by: k_manimuthu
5 Replies

4. Shell Programming and Scripting

Read: line 6: illegal option -e

For some reason read -e isn't working in my script. I need a directory as input from a user and I'd like for them to be able to use tab complete which is why I'm using -e. When the script is run, I get: read: line 6: illegal option -e In order to just figure out what is going on with the -e... (4 Replies)
Discussion started by: orangeSunshine
4 Replies

5. Shell Programming and Scripting

grep option to print the first match of each member of a list?

Hello, How to grep only the first match of each (unique) member of a list from the file? Say member.list contains: member1 member2 member3and table.tab which is sorted by the first 2nd and then 3rd column. member1 1.2 234 member1 1.1 234 member2 3.3 111 member2 2.3 222 member2 2.3 111... (5 Replies)
Discussion started by: yifangt
5 Replies

6. UNIX for Dummies Questions & Answers

What is a menu or command line option driven script?

i'm confused what this means. i was asked to design a menu or command line option driven script that reads out of a DB and displays info such as read_data.pl -u <user> -e <event> which would print commands run by <user>with the <event> in the db. any suggestions? i've been using... (2 Replies)
Discussion started by: kpddong
2 Replies

7. Shell Programming and Scripting

Remove Command-Line Option from String

I want to add a "-r <remote_host>" option to my ksh script, causing the script to run a script of the same name on the specified remote host. The remote invocation should itself include all the command-line options of the original invocation, less the -r option. For example, this invocation: ... (7 Replies)
Discussion started by: mattmiller
7 Replies

8. Programming

command line option: optarg

Hi I'm learning how to add in programm another option by command line. For example in the "my_prog" i want to add a " -k " option and then write a number. I mean: my_prog -k 50 and the i should use the number 50. I'm reading about getopt_long and optarg, and what i have done in the code... (0 Replies)
Discussion started by: Dedalus
0 Replies

9. Shell Programming and Scripting

using sed but want to drop last line

Howdy all. I have some scripts that read a text file looking for a keyword, then returning all the text until another keyword and puts it into a new file. Problem is, sed returns the entire last line that contains the 2nd keyword, and I don't want it! Here's an example of the sed script line: ... (21 Replies)
Discussion started by: atc98092
21 Replies

10. HP-UX

Print Problem in UNIX. Need to know the option to specify the print paper size

Hi, Could any one please let me know what is the option available in UNIX to print by specifying the paper size? We are using Unix11i. I could n't see any option specified in the 'lp' command to print the report by specifying the size of the paper. It would be of great help to me, if... (1 Reply)
Discussion started by: ukarthik
1 Replies
Login or Register to Ask a Question