02-18-2005
Fixed
Me neither. I suspect that's what it's doing now - transferring everything as binary.
Anyway, your sed script seems to do the trick, so I'm happy.
Thanks again for your help - it's cool when someone half way round the world solves a problem for me!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have file as shown below.
abc,
def,
abc,
xyz,
I have to remove ',' from end of last line (xyz,). How can I do that with single command? Is it possible or I have to iterate through complete file to remove that?
- Malay (2 Replies)
Discussion started by: malaymaru
2 Replies
2. Shell Programming and Scripting
I'm appending header and trailer record for a binary file using
echo "$header" > filename
cat oldfilename >> filename
echo "$trailer" >> filename
The echo is introducing newline character after header and trailer.Please let me know is there any possibility to get rid of newline character. (2 Replies)
Discussion started by: ammu
2 Replies
3. UNIX for Dummies Questions & Answers
HI i am having a file this
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1234567890
1234567890
1234567890
1234567890
I want to make this file as
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1456789023
1456789023
1456789023
1456789023
just take the 2nd and 3rd position and put it... (5 Replies)
Discussion started by: arunkumar_mca
5 Replies
4. Shell Programming and Scripting
hi
Someone can give me some clue or script in writing the below requirement
I am having 5 or 10 files of unix files which contain ^M charactes.
First we have to find ^M character and concat the line where it has broken and then we have to remove the ^M character from the uxix... (11 Replies)
Discussion started by: vsantoshusa
11 Replies
5. Shell Programming and Scripting
Hi,
I am having a pipe (|) delimited file which is having ^Z character in the middle of the text.Could anyone please suggest me how to remove this ^Z Character from the file.I almost used all the ideas posted in this site but none of them worked in my case since tis ^Z character is not coming at... (4 Replies)
Discussion started by: phoenix86
4 Replies
6. Shell Programming and Scripting
Hi,
My file has this special character "^M"
I would like to remove this characters.
eg:
abc,abc,^M
i tried using sed but doesnt work.
i used octal dump command to see special character it returns following:
015
\r
Appreciate your reply. (6 Replies)
Discussion started by: pinnacle
6 Replies
7. HP-UX
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
8. UNIX for Dummies Questions & Answers
I need help removing the last character of every line if it is a certain character. For example I need to get rid of a % character if it is in the last position.
Input:
aaa%
%bbb
ccc
d%dd%
Output should be:
aaa
%bbb
ccc
d%dd
I tried this but it gets rid of all of the % characters.... (5 Replies)
Discussion started by: raptor25
5 Replies
9. Shell Programming and Scripting
Hi all,
Please help me to remove first and last character of each line in a file.
Thanks,
Baski (5 Replies)
Discussion started by: baskivs
5 Replies
10. Shell Programming and Scripting
Hello guys,
I would need to remove the last character ")" of a specific line. This can be from any line. Your help is appreciated. Below is the line.
HOSTNAME=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP))
Please help. (6 Replies)
Discussion started by: sang8g
6 Replies
LEARN ABOUT OPENDARWIN
roundf
ROUND(3) BSD Library Functions Manual ROUND(3)
NAME
round, lround, llround -- round to integral value, regardless of rounding direction
SYNOPSIS
#include <math.h>
double
round(double x);
float
roundf(float x);
long int
lround(double x);
long int
lroundf(float x);
long long int
llround(double x);
long long int
llroundf(float x);
DESCRIPTION
The round() and roundf() functions return the integral value nearest to x rounding half-way cases away from zero, regardless of the current
rounding direction.
The lround() , lroundf() , llround() and llroundf() functions return the integral value nearest to x (rounding half-way cases away from zero,
regardless of the current rounding direction) in the return formats specified. If the rounded value is outside the range of the return type,
the numeric result is unspecified and the "invalid" floating-point exception is raised. A range error may occur if the magnitude of x is too
large.
SPECIAL VALUES
round(+-0) returns +-0.
round(+-infinity) returns +-infinity.
The round() functions may, but are not required to, raise the "inexact" floating-point exception for non-integer numeric arguments.
The lround() and llround() functions need not raise the "inexact" floating-point exception for non-integer arguments that round to within the
range of the return type.
SEE ALSO
abs(3), fabs(3), ceil(3), floor(3), ieee(3), math(3), rint(3)
STANDARDS
The round() , roundf() , lround() , lroundf() , llround() , and llroundf() functions conform to ISO/IEC 9899:1999(E).
BSD
July 22, 2003 BSD