Sponsored Content
Full Discussion: Add CRs (newlines)
Operating Systems OS X (Apple) Add CRs (newlines) Post 302301664 by Franklin52 on Friday 27th of March 2009 03:02:51 PM
Old 03-27-2009
If you still have the original file with a ^M after each line you can remove them with:

Code:
tr -d '\r' < your_file > new_file

Regards
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Transpose with two newlines as delimiter

Hi Guys, I have data in a file as follows: a 1 2 3 b 4 5 6 a 6 7 8 a 4 7 9 b 6 8 5 c 0 8 7 So the number of rows which have data is variable (2 for the first group, one for the second group and three for the third group), but the delimiters between the... (10 Replies)
Discussion started by: npatwardhan
10 Replies

2. Shell Programming and Scripting

Remove improperly placed newlines

Hello, there. I have a file that's a horrible, horrible mess. (Basically, it's an export from a firewall config.) The people who generated the file didn't think that putting a newline in the middle of a hostname would ever be a problem. It is. Here's an example of the stuff in the file: ... (2 Replies)
Discussion started by: mikesimone
2 Replies

3. Shell Programming and Scripting

Ignoring newlines in my search

I have a file that has lines that are deliminated with '^A', but some of the lines go for a few lines and I need those lines to be appended into one line. All of the lines start with 'low debug' and end with ' " 0 '. How can I read each line from start to finish without some of the data... (7 Replies)
Discussion started by: ndedhia1
7 Replies

4. Shell Programming and Scripting

Extract pattern before two newlines

Hi All, My file looks like this: 1 2 3 3 4 5 6 7 8 8 7 6 3 4 5 3 6 7 3 4 5 1 2 4 3 4 6 2 4 6 As you can see there are two newlines after the next pattern of numbers begin. (4 Replies)
Discussion started by: shoaibjameel123
4 Replies

5. Shell Programming and Scripting

removing newlines after a certain word.

Hello! This is my first post here. I have a file with text like: A</title> B C</title> D I need to format it to: AB CD I am trying to use sed: sed 's/<//title>\n/ /g' file > newfile to delete </title> and the newline character, but the file is unchanged because there are... (3 Replies)
Discussion started by: DaytonCPS
3 Replies

6. Shell Programming and Scripting

Need help with eliminating newlines with Perl

Good morning, I need some help with getting rid of newlines with the output from a MYSQL query and putting the information into the right format that I need. Here is the script as it is today: #!/usr/bin/perl my $uda = system("/opt/incontrol/mysql/bin/mysql -u root -ppassword... (2 Replies)
Discussion started by: brianjb
2 Replies

7. Red Hat

User shutdown detected - cssd(16694)CRS-1603:CSSD.

User shutdown detected - cssd(16694)CRS-1603:CSSD. Can you help me with this error in redhat linux server (1 Reply)
Discussion started by: karthik9358
1 Replies

8. UNIX for Dummies Questions & Answers

Remove newlines

Hi buddy's my file are like this: s.no,name,band,sal 1,"suneel",,10 2,"bargav sand",,20 30," ebdug gil",,4 but i want s.no,name,band,sal 1,"suneel",,10 2,"bargav sand",,20 30,"ebdug gil",,4 any command or Shell script for this. please help me it's urgent to implement (33 Replies)
Discussion started by: Suneelbabu.etl
33 Replies

9. Shell Programming and Scripting

UNIX file with Newlines

Hi Friends, I have a data file with new lines. How to remove the newlines and should be showed in one line. I tried using the command tr -d '\n' filename sed 's/\n//g' file name Ex: 1 abc hyd is actual record but in our scenario showing it as 1 abc hydthis record should be like... (5 Replies)
Discussion started by: victory
5 Replies
IDL2ETH(1)						   The Ethereal Network Analyzer						IDL2ETH(1)

NAME
idl2eth - CORBA IDL to Ethereal Plugin Generator SYNOPSYS
idl2eth filename DESCRIPTION
idl2eth is a program that takes a user specified CORBA IDL file and generates "C" source code for an Ethereal "plugin". This resulting file can be compiled as an Ethereal plugin, and used to monitor GIOP/IIOP traffic that is using this IDL. idl2eth is actually a shell script wrapper for two Python programs. These programs are: ethereal_be.py - Contains the main IDL Visitor Class ethereal_gen.py - Contains the Source Code Generator Class idl2eth supports heuristic dissection of GIOP/IIOP traffic, and some experimental code for explicit dissection, based on Object Key <-> Repository Id mapping. However, code for heuristic based plugins is generated by default, and users should consider this the preferred method unless you have some namespace collisions. OPTIONS
Currently there are no options. idl2eth can be invoked as follows. 1. To write the C code to stdout. idl2eth <your_file.idl> eg: idl2eth echo.idl 2. To write to a file, just redirect the output. idl2eth echo.idl > packet-test.c ENVIRONMENT
idl2eth will look for ethereal_be.py and ethereal_gen.py in $PYTHONPATH/site-packages/ and if not found, will try the current directory ./ The -p option passed to omniidl (inside idl2eth) indicates where ethereal_be.py and ethereal_gen.py will be searched. This may need tweak- ing if you place these files somewhere else. If it complains about being unable to find some modules (eg tempfile.py), you may want to check if PYTHONPATH is set correctly. eg: PYTHONPATH=/usr/lib/python1.5/ SEE ALSO
ethereal(1) NOTES
idl2eth (including ethereal_be.py and ethereal_gen.py) are part of the Ethereal distribution. The latest version of Ethereal can be found at http://www.ethereal.com. idl2eth uses omniidl, and IDL parser, and can be found at http://www.uk.research.att.com/omniORB/omniORB.html TODO
Some of the more important things to do are: o Improve Explicit dissection code. o Improve command line options. o Improve decode algorithm when we have operation name collision. AUTHORS
Original Author -------- ------ Frank Singleton <frank.singleton@ericsson.com> Contributors ------------ 0.9.8 2002-03-28 IDL2ETH(1)
All times are GMT -4. The time now is 09:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy