Sponsored Content
Top Forums Shell Programming and Scripting How to remove line break character in a file Post 302514471 by ctsgnb on Friday 15th of April 2011 07:47:48 PM
Old 04-15-2011
Please give an example how looks your input file and how it should be output so people can provide a more accurate help
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remove Line Break

Dear all, Please advise what approach can remove all line break from a text file? e.g. Source file: A B C Target file: A, B, C Thanks, Rock (5 Replies)
Discussion started by: Rock
5 Replies

2. HP-UX

How to remove new line character and append new line character in a file?

Hi Experts, I have data coming in 4 columns and there are new line characters \n in between the data. I need to remove the new line characters in the middle of the row and keep the \n character at the end of the line. File is comma (,) seperated. Eg: ID,Client ,SNo,Rank 37,Airtel \n... (8 Replies)
Discussion started by: sasikari
8 Replies

3. Shell Programming and Scripting

How to remove line break in a csv file

Hi Experts, My requirement is to read the csv file and need to remove if any line break in it. sample data: Row1: "Oslo, Symra kino",Oslo,130-7,Symra 1,130-7-91 Row2:"Tønsberg, Brygga Kino SF",Tønsberg,202-1, Tønsberg SF 4,202-1-4 Expected data: Row1: "Oslo, Symra... (6 Replies)
Discussion started by: cnraja
6 Replies

4. Shell Programming and Scripting

Help to remove line break

My requirement is to read the csv file and need to remove if any line break in it. sample data: Row1: "Oslo, Symra kino",Oslo,130-7,Symra 1,130-7-91Row2:"Tønsberg, Brygga Kino SF",Tønsberg,202-1.Tønsberg SF 4,202-1-4 Expected data: Row1: "Oslo, Symra kino",Oslo,130-7,Symra... (4 Replies)
Discussion started by: cnraja
4 Replies

5. UNIX for Dummies Questions & Answers

Remove Line Break VI

I'm trying to make a script that says echo This is the date: I did this echo This is the date: date and it worked. But I need them both on the same line. And putting date on the echo line doesn't work. Is there a way to do so? (1 Reply)
Discussion started by: bbowers
1 Replies

6. Shell Programming and Scripting

How to remove new line character at end of file.

I need to remove new line character from end of file. Suppose here are content. a|b|c|d|r a|b|c|d|r a|b|c|d|r <new line> that means file contains 4 lines but data is there in 3 lines. so I want that only 3 lines should be there in file. Please help (20 Replies)
Discussion started by: varun940
20 Replies

7. Shell Programming and Scripting

Remove the last character (,) for every line in a file

Good afternoon: im working wih 2 files to find differences and use the cmp command cmp file1 file2 file1 file2 are are diifferent char 302 line1 i found what the difference is with the sed command and that is the file1 at the end of every line has a (,) (comma) character. i.e sed -n... (4 Replies)
Discussion started by: alexcol
4 Replies

8. Shell Programming and Scripting

How to Remove comma as last character in end of last line of file?

how to Remove comma as last charector in end of last line of file: example: input file --------------- aaaaaa, bbbbbb, cccc, 12345, ____________ output file : ----------- aaaaaa, bbbbbb, (6 Replies)
Discussion started by: RahulJoshi
6 Replies

9. UNIX for Dummies Questions & Answers

How to remove $ or new line character in a file?

Hi All, Could any one suggest how to remove $ symbol in a text file when i am opening in vi editor. Scenario; For example iam having a file name aaa.txt the data inside the file is like sample name when i am opening in vi editor The same file resembles like below when i am... (1 Reply)
Discussion started by: Chandru_Raj
1 Replies

10. Shell Programming and Scripting

Remove line break at specific position

Hi, I need to remove line breaks from a file, but only the ones at specific position. Input file: this is ok this line is divided at posit ion 30. The same as this one, also position 30 the rest of lines are ok with different lengths The longest ones are always s plitted at same... (15 Replies)
Discussion started by: qranumo
15 Replies
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)
All times are GMT -4. The time now is 03:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy