08-15-2006
What OS? Most unix systems have some sort of program to do this job. Solaris has dos2unix, HP-UX has dos2ux, most of the other systems should have dos2unix too. Use these.
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. UNIX for Dummies Questions & Answers
Hi,
When I do a man and save it into a file, I end up getting a lot of control characters. How can I remove them??
I tried this:
/1,$ s/^H//g
But I get an error saying "no previous regular expression".
Can someone help me with this.
Thanks,
Aravind (5 Replies)
Discussion started by: aravind_mg
5 Replies
3. Shell Programming and Scripting
Hi,
Can anyone help me with controlling the cursor position from a shell script. Things like moving left,right,up,down etc
Anyone have any ideas? (2 Replies)
Discussion started by: ajcannon
2 Replies
4. Shell Programming and Scripting
Can somebody please help me with the query. ?
I want a part of program of which should look for control characters in the flat file , when it finds it, displaying message that Control Characters found..!
Please help me (1 Reply)
Discussion started by: iamnoone
1 Replies
5. Shell Programming and Scripting
Can somebody please help me with the query. ?
I want a part of program of which should look for control characters in the flat file , when it finds it, displaying message that Control Characters found..!
Please help me (13 Replies)
Discussion started by: iamnoone
13 Replies
6. Shell Programming and Scripting
sed -e "s// /g" old.txt > new.txt
While I do know some control characters need to be escaped, can normal characters also be escaped and still work the same way? Basically I do not know all control characters that have a special meaning, for example, ?, ., % have a meaning and have to be escaped... (11 Replies)
Discussion started by: ijustneeda
11 Replies
7. Shell Programming and Scripting
Good evening
Im new at unix shell scripting and im planning to script a shell that removes headers for about 120 files in a directory and each file contains about 200000
lines in average.
i know i will loop files to process each one and ive found in this great forum different solutions... (5 Replies)
Discussion started by: alexcol
5 Replies
8. Shell Programming and Scripting
Hi,
Please excuse for posting new thread on control characters,
I am facing some difficulties in removing the control character from a file extracted from top command,
i am able to see control characters using more command and in vi mode, through cat control characters are not visible ... (8 Replies)
Discussion started by: karthikram
8 Replies
9. UNIX for Dummies Questions & Answers
Hi,
My files are showing some control characters in vi editor
^M
^@ and somtimes
^H
I removed ^M with %s/^M//g command
but how to represent ^@ and ^H
e.g. for ^M it is hold ctrl then v and m..
Please help..
I am very new to unix.. (7 Replies)
Discussion started by: prabhat.diwaker
7 Replies
10. Shell Programming and Scripting
Hallo Team,
I am trying to get rid of the dollar sign. I managed to remove all the other special characters but i am struggling with this one.
-bash-3.2$ cat -e missing_revenue_20141112.csv|less|head
BW0522168531211141180935668@196.23.110.141$
BW092218784121114-370120610@196.23.110.141$... (4 Replies)
Discussion started by: kekanap
4 Replies
LEARN ABOUT MINIX
pnmscalefixed
pnmscalefixed(1) General Commands Manual pnmscalefixed(1)
NAME
pnmscalefixed - scale a portable anymap quickly, but less accurate
DESCRIPTION
pnmscalefixed is the same thing as pnmscale except that it uses fixed point arithmetic internally instead of floating point, which makes it
run faster. In turn, it is less accurate and may distort the image.
Use the pnmscale man page with pnmscalefixed. This man page only describes the difference.
pnmscalefixed uses fixed point 12 bit arithmetic. By contrast, pnmscale uses floating point arithmetic which on most machines is probably
24 bit precision. This makes pnmscalefixed run faster (30% faster in one experiment), but the imprecision can cause distortions at the
right and bottom edges.
The distortion takes the following form: One pixel from the edge of the input is rendered larger in the output than the scaling factor
requires. Consequently, the rest of the image is smaller than the scaling factor requires, because the overall dimensions of the image are
always as requested. This distortion will usually be very hard to see.
pnmscalefixed with the -verbose option tells you how much distortion there is.
The amount of distortion depends on the size of the input image and how close the scaling factor is to an integral 1/4096th.
If the scaling factor is an exact multiple of 1/4096, there is no distortion. So, for example doubling or halving an image causes no dis-
tortion. But reducing it or enlarging it by a third would cause some distortion. To consider an extreme case, scaling a 100,000 row image
down to 50,022 rows would create an output image with all of the input squeezed into the top 50,000 rows, and the last row of the input
copied into the bottom 22 rows of output.
pnmscalefixed could probably be modified to use 16 bit or better arithmetic without losing anything. The modification would consist of a
single constant in the source code. Until there is a demonstrated need for that, though, the Netpbm maintainer wants to keep the safety
cushion afforded by the original 12 bit precision.
pnmscalefixed does not have pnmscale 's -nomix option.
18 November 2000 pnmscalefixed(1)