Solved

Printer problem LF->CRLF

Posted on 1997-12-09
1
467 Views
Last Modified: 2013-12-16
I can add the printer in my setup sucessfully.  However, when I print a text file, I prints a paragraph like "stairs" without the line caraige return.  In Linux, it claims there is an option for LF->CRLF; however, I cannot find it.  How can I fix this problem manually ?  Without using unix2dos everytime before send the file to the printer.
0
Comment
Question by:andrewma
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 1812807
Add a filter to your printer spooler.

A perl filter looks like:

#! /bin/perl -n
chop;
print "$_\r\n";

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now