Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Confusion with CRLF (wint) and LF (unix) as end of line seperators Post 302523304 by ctsgnb on Wednesday 18th of May 2011 11:05:05 AM
Old 05-18-2011
Use wordpad instead of notepad :

Wordpad will recognize if your file only has LF and will give a nice display ... notepad won't.

If CRLF formatted file, both notepad and wordpad will display it correctly.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Deleting UNIX End of Line Chachracter \000

Hi, I have this file which has some octal NULL characters (\000). I need to replace these characters with an ASCII NULL. I've tried using Perl, the UNIX tr command.. History of this I received a COBOL generated file, ran the od command to convert to a xxx byte per record file. Now,... (3 Replies)
Discussion started by: uchachra
3 Replies

2. Shell Programming and Scripting

windows file to unix :end line chararcter

hi , When i ftp a text file from Windows to unix enviornment and open the file in " vi editor" the end line charcrter of the windows file is seen as "cntrl+M" charcter in the Unix enviornment. Is there any command in unix , so that i dont see this "cntrl+M" chararcter in the... (9 Replies)
Discussion started by: dharmesht
9 Replies

3. UNIX for Dummies Questions & Answers

How to convert ^M appearing at end of line to unix newline?

How to convert ^M appearing at end of line to unix newline? As I have tried with ^M in 'tr' it replaced ^ to a newline. Thanks in advance. (21 Replies)
Discussion started by: videsh77
21 Replies

4. Programming

how to add CRLF support for CSV file generated in unix

Helo, my server side system is running on a redhat linux o.s. I have c program on the server which export list file into CSV format. now, I want that my program on server side is able to add support for CRLF(carriage return Line feed)into csv file format. so how do i write C program whcih... (3 Replies)
Discussion started by: amitpansuria
3 Replies

5. Shell Programming and Scripting

Replacing end of line with " in a UNIX file

How should I replace End of line Character by ". i.e in a file - Name1,NO1 Name2,No2 Name3,No3 .... Should look like -- Name1,NO1" Name2,No2" Name3,No3" .... (2 Replies)
Discussion started by: The Observer
2 Replies

6. Shell Programming and Scripting

Converting hex value 7C (for pipe) to CRLF in Unix

I am trying to convert a txt file that includes one long string of data. The lines are separated with hex value 7C (for pipe). I am trying to process this file using SQR (Peoplesoft) so I thought the easiest thing to do would be to replace the eol char with a CRLF in unix so I can just... (4 Replies)
Discussion started by: sfedak
4 Replies

7. Shell Programming and Scripting

Two field seperators with awk?

Im trying to brush up with my awk knowledge and update some old scripts to be a little more compact... What I would like to know how to do is the following: hostname,10.10.10.1 I have the above csv (with many more fields of course) how can I write a single line to pull field 2 from the... (7 Replies)
Discussion started by: trey85stang
7 Replies

8. Shell Programming and Scripting

Appending CRLF to end of record

I need to append |\r\n (a pipe character and CRLF) at end of each record in Unix to all records where they are not already present. So first check for the presence of |\r\n and if absent append it else do nothing (3 Replies)
Discussion started by: abhilashnair
3 Replies

9. UNIX for Beginners Questions & Answers

UNIX help adding data to end of a line with a variable

I am trying to add a date variable to the end of each line. This is what I have to start with cat ${DATAPATH}/Participate_Stream${STREAMDATE}.dryak1.csv | grep ^',' | awk '{print $0}' >> ${DATAPATH}/badparticipant.csv This is what I tried $DATE is a variable I have defined. cat... (3 Replies)
Discussion started by: req62861
3 Replies

10. UNIX for Beginners Questions & Answers

Views How to replace a CRLF char from a variable length file in the middle of a string in UNIX?

My sample file is variable length, with out any field delimiters. It has min of 18 chars length and the 'CRLF' is potentially between 12-14 chars. How do I replace this with a space? I still want to keep end of record, but just want to remove these new lines chars in the middle of the data. ... (7 Replies)
Discussion started by: chandrath
7 Replies
srec_ti_tagged_16(5)						File Formats Manual					      srec_ti_tagged_16(5)

NAME
srec_ti_tagged_16 - Texas Instruments Tagged (SDSMAC 320) file format DESCRIPTION
This format is also known as the TI-Tagged or Texas Instruments SDSMAC (320) format. This format allows binary files to be uploaded and downloaded between two computer systems, typically between a computer system (such as a PC, Macintosh, or workstation) and an emulator or evaluation board for 16-bit microcontrollers and microprocessors. The Lines Unlike many other object formats, the lines themselves are not especially significant. The format consits of a number of tagged fields, and lines are composed of a series of these fields. Tag Description ------------------------------------- * Data byte. : End of file. 0 File header (optional). 7 Checksum. 8 Dummy checksum (ignored). 9 Word Address. B Data word. F End of data record. K Program identifier (optional). Data Byte +--+---+---+ |B | n | n | One byte of data. The nn is 8-bit big-endian hexadecimal. +--+---+---+ End of File +--+------+ |: | CRLF | The end of data is indicated by this tag. The end of line sequence+(LF-on+Unix systems, CRLF on PCs) follows this tag. File Header +--+--------+----------+ |0 | length | filename | The optional start-of-file record begins with a tag character+('0')-and-a-12-character file header. The first four characters are the count (in hex) of the 16-bit data word values (B) which follow, not including data byte values (*). The remaining file header characters are the name of the file and may be any ASCII characters, blank padded. Checksum +--+---+---+---+---+ |7 | n | n | n | n | The checksum is the 2s complement sum of the 8-bit ASCII values-of-characters, beginning with the first tag character and ending with the checksum tag character (7). The nnnn is 16-bit big-endian hexadecimal. Dummy Checksum +--+---+---+---+---+ |8 | n | n | n | n | The checksum is the 2s complement sum of the 8-bit ASCII values+of-characters,-beginning with the first tag character and ending with the checksum tag character (8). The nnnn is 16-bit big-endian hexadecimal. Address +--+---+---+---+---+ |9 | n | n | n | n | Addresses may be given for any data byte, but none is mandatory.--The-file+begins at 0000 if no address is given before the first data field. The nnnn is 16-bit big-endian hexadecimal. Data Word +--+---+---+---+---+ |B | a | a | b | b | Two bytes of data. The aa and bb are each 8-bit big-endian hexadecimal.---+---+ End of Record +--+------+ |F | CRLF | The end of line sequence (LF on Unix systems, CRLF on PCs) is escaped-using this tag. The checksum is reset to zero at this point. Program Identifier +--+---+---+---+---+------+ |K | n | n | n | n | text | The program identifier can contain a brief description of-the-program,-or-can-be-empty (i.e. the text portion is optional). The nnnn length (hex) of the field includes the `K', the length and the text; it is at least 5. Size Multiplier In general, binary data will expand in sized by approximately 2.9 times when represented with this format. EXAMPLE
Here is an example TI-Tagged file. It contains the data "Hello, World[rq] to be loaded at address 0x0100. K000590080B4865B6C6CB6F2CB2057B6F72B6C64*0A7F641F : Here is another example from the reference below 00028 7FDCFF 90000BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F400F 90008BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F3F8F 90010BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F3FFF 90018BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F3F7F 90020BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F3FEF : SEE ALSO
http://www.dataio.com/pdf/Manuals/Unifamily/981-0014-016.pdf (page 6-7) COPYRIGHT
srec_cat version 1.58 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Peter Miller The srec_cat program comes with ABSOLUTELY NO WARRANTY; for details use the 'srec_cat -VERSion License' command. This is free software and you are welcome to redistribute it under certain conditions; for details use the 'srec_cat -VERSion License' command. AUTHOR
Peter Miller E-Mail: pmiller@opensource.org.au //* WWW: http://miller.emu.id.au/pmiller/ Reference Manual SRecord srec_ti_tagged_16(5)
All times are GMT -4. The time now is 09:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy