help to print text file in unix system


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers help to print text file in unix system
# 1  
Old 10-06-2008
Help for SCO Unix

I am using SCO Unix to print text file. But the word size is too large, it is always over page (A4) when I print. Does Any one know how to use command change word size and make it fit on the page to print text file.

I use command:
lp -d (printer name) textFileName
# 2  
Old 10-07-2008
help to print text file in unix system

I need to print text file using local printer. But font size of my text file is large, and will miss right part of file when I print. Anyone knows how to fix this problem? How to adjust the font size of file?
# 3  
Old 10-07-2008
Code:
 lp -o cpi=12  -o landscape -d printer filename

You can use several -o <option> on one line.

cpi=17 is really small print. Read the cups software users manual for complete information. All of this assumes SCO still uses cups.
# 4  
Old 10-07-2008
I tried it already, but it didn't work. the printer is Dot Matrix Printer (Fujistu DL6400 Pro). Is there any different command used for this printer

Last edited by wendyz; 10-07-2008 at 07:37 PM..
# 5  
Old 10-07-2008
when I use Fujitsu Dot Matrix Printer to print text file. It always gets error message. Why?

# lp -o cpi=17 -d lpt1 /data1/forte/lptext.5321
UX:lp: ERROR: The following options can't be handled:
-o cpi=
TO FIX: The printer(s) that otherwise qualify
for printing your request can't handle
one or more of these options. Try
one orr printer, or change the options.
# 6  
Old 10-08-2008
Have you tried lp -oc ?
# 7  
Old 10-08-2008
First question: What command are you using to print to the printer? What kind of printer -- Dot Matrix, or modern Laser or inkjet? Second, does the printer support postscript? If not postscript, does it support "Embedded PCL" or just "PCL"?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Match text to lines in a file, iterate backwards until text or text substring matches, print to file

hi all, trying this using shell/bash with sed/awk/grep I have two files, one containing one column, the other containing multiple columns (comma delimited). file1.txt abc12345 def12345 ghi54321 ... file2.txt abc1,text1,texta abc,text2,textb def123,text3,textc gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies

2. Shell Programming and Scripting

How to enforce user to Enter text when login to a UNIX / Linux system?

Hi. I inject my tracklogin.sh script in the profile of each user. $ more .profile ./tracklogin.sh # This is the default standard profile provided to a user. MAIL=/usr/mail/${LOGNAME:?} bash-3.2$ more tracklogin.sh #!/bin/bash tdate=$(date +"%d%m%y") mkdir -p /tmp/root_log... (20 Replies)
Discussion started by: mohtashims
20 Replies

3. UNIX for Dummies Questions & Answers

Reading Xml file and print the values into the text file in columnwise?

hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file <sequence> <Filename>aldorzum.doc</Filename> <DivisionCode>US</DivisionCode> <ContentType>Template</ContentType> <ProductCode>VIMZIM</ProductCode> </sequence>... (4 Replies)
Discussion started by: sravanreddy
4 Replies

4. UNIX for Dummies Questions & Answers

Reading XML file and print the values in the text file using Linux shell script

hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file <sequence> <Filename>aldorzum.doc</Filename> <DivisionCode>US</DivisionCode> <ContentType>Template</ContentType> <ProductCode>VIMZIM</ProductCode> </sequence>... (1 Reply)
Discussion started by: sravanreddy
1 Replies

5. Shell Programming and Scripting

UNIX file system to Linux file system migration

We would be migrating UNIX file system to Linux file system. We do have many directory and sub directories with files. after migrating unix to linux file system , i want to make sure all the files has been copied ? What would be the best approach to validate directory ,sub-directory and file... (1 Reply)
Discussion started by: balajikalai
1 Replies

6. UNIX for Dummies Questions & Answers

How to print the text between two strings in unix.

Hi Team, Would you please help me for the below scenario. I want to print the text between "PREF:" AND "AVAIL:" in the below example. For example:- TEST_TAF PREF: RAC1 RAC2 RAC3 ...... AVAIL: RAC4 Output will be :-RAC1,RAC2,RAC3............. Thanks in Advance Shoan ... (5 Replies)
Discussion started by: shoan
5 Replies

7. Shell Programming and Scripting

Search text from a file and print text and one previous line too

Hi, Please let me know how to find text and print text and its previous line. Please don't get irritated few days back I asked text and next line. I am using HP-UX 11.11 Thanks for your help. (6 Replies)
Discussion started by: kamranjalal
6 Replies

8. Shell Programming and Scripting

Print only certain lines from a text file

Hi all, I have a text file and I want to clean up the file by only print those lines start with the date. Is there anyway I can do that?  Thanks CT (1 Reply)
Discussion started by: CamTu
1 Replies

9. UNIX for Dummies Questions & Answers

How to print a text file in landscape

Could someone tell me how to print a text file in land scape. Thanks (5 Replies)
Discussion started by: yxiao
5 Replies
Login or Register to Ask a Question