Sponsored Content
Top Forums Shell Programming and Scripting New line characters in Ascii file Post 302420241 by zaxxon on Tuesday 11th of May 2010 05:22:57 AM
Old 05-11-2010
As it seems there is no newline at the end of line anymore, but just the windows <cr>. On Unix side you can try to replace the ^M with \n like this:
Code:
tr -s '\015' '\n' < infile > outfile

This User Gave Thanks to zaxxon For This Post:
 

10 More Discussions You Might Find Interesting

1. HP-UX

Hex characters of ascii file

Hi, Whats the command or how do you display the hexadecimal characters of an ascii file. thanks Bud (2 Replies)
Discussion started by: budrito
2 Replies

2. Shell Programming and Scripting

Multibyte characters to ASCII

Hello, Is there any UNIX utility/command/executable that will convert mutlibyte characters to standard single byte ASCII characters in a given file? and Is there any UNIX utility/command/executable that will recognize multibyte characters in a given file name? The typical multibyte... (8 Replies)
Discussion started by: jerardfjay
8 Replies

3. Shell Programming and Scripting

Weird Ascii characters in file names

Hi. I have files in my OS that has weird file names with not-conventional ascii characters. I would like to run them but I can't refer them. I know the ascii # of the problematic characters. I can't change their name since it belongs to a 3rd party program... but I want to run it. is there... (2 Replies)
Discussion started by: yamsin789
2 Replies

4. Shell Programming and Scripting

read in a file character by character - replace any unknown ASCII characters with spa

Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/ Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies

5. Shell Programming and Scripting

convert ascii values into ascii characters

Hi gurus, I have a file in unix with ascii values. I need to convert all the ascii values in the file to ascii characters. File contains nearly 20000 records with ascii values. (10 Replies)
Discussion started by: sandeeppvk
10 Replies

6. Shell Programming and Scripting

How to check if the file has EBCDIC or ascii characters

Hi, is there a way to check if the initial few characters are ebcdic or ascii in a file? (1 Reply)
Discussion started by: ahmedwaseem2000
1 Replies

7. Shell Programming and Scripting

Removing these non-ASCII characters from a file

Hi, I have many text files which contain some non-ASCII characters. I attach the screenshots of one of the files for people to have a look at. The issue is even after issuing the non-ASCII removal commands one of the characters does not go away. The character that goes away is the black one with a... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies

8. Shell Programming and Scripting

Identify extended ascii characters in a file

Hi, Is there a way to identify the lines in a file having extended ascii characters and display the same? For instance I have a file abc.txt having below data aaa|bbb|111|This is first line aaa|bbb|222|This is secõnd line aaa|bbb|333|This is third line aaa|bbb|444|This is foùrth line... (3 Replies)
Discussion started by: decci_7
3 Replies

9. Shell Programming and Scripting

Convert UTF-8 file to ASCII/ISO8859-1 OR replace characters

I am trying to develop a script which will work on a source UTF-8 file and perform one or more of the following It will accept the target encoding as an argument e.g. US-ASCII or ISO-8859-1, etc 1. It should replace all occurrences of characters outside target character set by " " (space) or... (3 Replies)
Discussion started by: hemkiran.s
3 Replies

10. UNIX for Beginners Questions & Answers

Lower ASCII characters.

Hi, I'm writing a BBS telnet program. I'm having issues with it not displaying lower ASCII characters. For example, instead of displaying the "smiley face" character (Ctrl-B), it displays ^B. Is this because i'm using Ncurses? If so, is there any way around this? Thanks. (3 Replies)
Discussion started by: ignatius
3 Replies
aecat(1)						      General Commands Manual							  aecat(1)

NAME
aecat - display an aewan document SYNOPSIS
aecat [-b] [-c] [-{n|N}] [{-p | -l <layer_num>}] [-f <format>] [-o <output_file>] inputfile DESCRIPTION
This is an utility program that will convert an aewan document to ANSI escape sequences so that it can be rendered on a standard terminal. Alternatively, it can also generate HTML code for displaying the document in a web page. Any particular layer of the document may be con- verted, or you may request a composite of all layers. OPTIONS
-f specifies output format - can "text", "html" or "comment". Default is "text". The "comment" format extracts document metadata. -c prepend a 'clear screen' escape sequence (only valid when outputting text). -o<file> writes output to specified file rather than stdout -b disables output of color (only characters will be printed). -l<layer_no> specifies which layer of the document is to be used (must be an index, not a layer name). By default, layer 0 will be used. -L displays the number of layers in the file. -p exports a composite, that is, overlays all visible layers, paying attention to layer transparency, etc. The size of the composite will be the size of the first layer -n suppress output of newlines -h prints a short help text AUTHORS
This program is part of the Aewan Ascii Art Editor package. See aewan(1) for author information. LICENSE
Copyright (c) 2004-2005 Bruno Takahashi C. de Oliveira. All rights reserved. This program is licensed under the GNU General Public License, version 2 or, at your option, any later version. For full license informa- tion, please refer to the COPYING file that accompanies the program. SEE ALSO
aewan(1), aewan(5), aemakeflic(1) aecat (Aewan Ascii Art Editor) March 2005 aecat(1)
All times are GMT -4. The time now is 01:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy