08-29-2005
Too little info to give a good answer, what is the reason for the control characters?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
using c-shell, does anyone know how to send control characters to the printer before the job?
I need to set a printer to print in condensed mode
HELP (1 Reply)
Discussion started by: mglinsk
1 Replies
2. Shell Programming and Scripting
Hi ,
the fog is fulling my brain after holidays , somebody can help me ?
I have a file in input like that :
toto
tata
tutu
and trying with awk to insert the compete file string as :
/dir1/dir2/toto
/dir1/dir2/tata
/dir1/dir2/tutu
i used to write :
awk 'BEGIN {FS="\\"} {print... (4 Replies)
Discussion started by: Nicol
4 Replies
3. UNIX for Dummies Questions & Answers
Hi there,
I want to open a cash drawer remotely. The cash drawer is commanded by a printer.
I need to connect to the cash drawer which is connected over a network (and shared) and simply send a sequence of five ASCII commands (see http://pages.prodigy.net/daleharris/popopen2.htm) to a... (5 Replies)
Discussion started by: Friğrik
5 Replies
4. Shell Programming and Scripting
Hello,
any trick to print line number and last two characters of each line ? (4 Replies)
Discussion started by: Bashar
4 Replies
5. UNIX for Dummies Questions & Answers
Hi
I have a password stored in a file (which is a user input)
The password is having the special character $
say the password is pw$ord and is stored in the file pw_note
I am using the following statement to store the passowrd in a
variable
$schema_pwd = `cat $dir/pwd_note` ;
Now if i print... (4 Replies)
Discussion started by: ssuresh1999
4 Replies
6. UNIX for Dummies Questions & Answers
How to add control characters at the end of each line in a file?
Can anyone help me with this?
Thanks,
Shobana (2 Replies)
Discussion started by: Shobana_s
2 Replies
7. Linux
Hi,
I have an csv file and there are some non printable characters(extended ascii) so I am trying to create a clean copy of the csv file . I am using
this command:
tr -cd "" < /opt/informatica/PowerCenter8.6.0/server/infa_shared/SrcFiles/ThirdParty/locations.csv > ... (4 Replies)
Discussion started by: gerkus
4 Replies
8. UNIX for Dummies Questions & Answers
hi
i have a file that contains the data like this
12345
12453
8990998987
0989876656
12345678
12344
133678999
12345677
i should insert "+" and "-" signs for each line i,e.,
+ 12345
- 12453
+ 8990998987
- 0989876656
+ 12345678
- 12344 (2 Replies)
Discussion started by: anurupa777
2 Replies
9. Shell Programming and Scripting
How do I remove the printer escape sequence, the first 5 characters, that occurs on every 33rd line in a file, see hex dump of line 1.
0000 1e 00 00 00 00 0a 0a 0a 20 0a 20 20 20 20 20 20 ....
0010 20 20 20 20 20 20 20 20 20 20 0a 42 49 4c 4c 20
Thanks, (2 Replies)
Discussion started by: jgt
2 Replies
10. UNIX for Beginners Questions & Answers
I would like to insert n number of characters at the beginning of each line that starts with a given character. If possible, I would be most appreciative for a sed or awk solution.
Given the data below, I would like to be able to insert either 125 spaces or 125 "-" at the beginning of every line... (6 Replies)
Discussion started by: jvoot
6 Replies
LEARN ABOUT MINIX
pbmtoascii
pbmtoascii(1) General Commands Manual pbmtoascii(1)
NAME
pbmtoascii - convert a portable bitmap into ASCII graphics
SYNOPSIS
pbmtoascii [-1x2|-2x4] [pbmfile]
DESCRIPTION
Reads a portable bitmap as input. Produces a somewhat crude ASCII graphic as output.
Note that there is no asciitopbm tool - this transformation is one-way.
OPTIONS
The -1x2 and -2x4 flags give you two alternate ways for the bits to get mapped to characters. With 1x2, the default, each character repre-
sents a group of 1 bit across by 2 bits down. With -2x4, each character represents 2 bits across by 4 bits down. With the 1x2 mode you
can see the individual bits, so it's useful for previewing small bitmaps on a non-graphics terminal. The 2x4 mode lets you display larger
bitmaps on a standard 80-column display, but it obscures bit-level details. 2x4 mode is also good for displaying graymaps - "pnmscale
-width 158 | pgmnorm | pgmtopbm -thresh" should give good results.
SEE ALSO
pbm(5)
AUTHOR
Copyright (C) 1988, 1992 by Jef Poskanzer.
20 March 1992 pbmtoascii(1)