similar to: need to find (and distinguish types of) carriage returns in a file that is scanned using scan

Displaying 20 results from an estimated 10000 matches similar to: "need to find (and distinguish types of) carriage returns in a file that is scanned using scan"

2006 Nov 13
2
Embedded carriage returns in text document
Colleagues, I am using R 2.4.0 on both a Mac (10.4.8) and Linux (RedHat 9). To read data from an Excel spreadsheet, I do "save as" in Excel, then select the "Text (tab-delimited)" format. The resulting file uses a tab separator and I can usually read the file using read.delim. Sometimes, the header row contains embedded carriage returns. When I view the file,
2007 Mar 08
1
reading a text file with a stray carriage return
Hi, I'm hoping someone has a suggestion for handling a simple problem. A client gave me a comma separated value file (call it x.csv) that has an id and name and address for about 25,000 people (25,000 records). I used read.table to read it, but then discovered that there are stray carriage returns on several records. This plays havoc with read.table since it starts a
2019 Sep 06
2
[PATCH 1/1] log: do not print carriage return
From: Christian Hesse <mail at eworm.de> Logging to stderr results in line endings being terminated with carriage return (\r) and new line (\n). While this is fine for terminals it may have undesired effects when running from crond and logging to syslog or similar. I run ssh from cron on an recent linux host. Viewing logs with journalctl I see: Sep 06 16:50:01 linux CROND[152575]: [96B
2009 Sep 01
2
antispam-plugin 1.2 and trailing carriage-returns
Guys, Dovecot 1.0.15 [1], just built the latest antispam-plugin 1.2 (tarball) for testing, mailtrain backend for SA integration. Both built from custom spec files. The mail that is being trained is different than its respective source in the mbox file. The trained one shows added, trailing carriage-return chars for all headers, which are not in the headers in the mbox file. This breaks sa-learn
2012 Apr 04
3
Remove carriage return in writing tab-delimited file.
Having problems with the write.table function. I can write a tab delimited file just fine, but for each line in my matrix its inputs a carriage return when i dont want it to. For example my matrix might be: ID V1 V2 V3 FARY1004 1 2 3 FARY2067 2 3 1 FARY4587 2 2 2 And I want the written File to be: FARY1004 1 2 3FARY2067 2 3 1FARY4587 2 2 2 TIA -- View this
2007 Mar 19
1
Carriage returns and Sweave output
Dear all, I have a code chunk in my Rnw file that, when executed, outputs carriage return characters ('\r') to inform on the progress (e.g. "sweep 4 of 1024\r"). But Sweave interprets this as a newline character, and therefore I get countless pages of output in my vignette where I only really want one line. Any ideas? Thanks E
2012 Apr 15
1
no carriage returns in BATCH output from 2.15.0
It seems like I must be missing something since I haven't been able to find mention of this. Under Windows 7 I'm not getting carriage returns in the output of BATCH files using 2.15.0 (both 64-bit and 32-bit). They are in the startup messages, but not for the real output. Is this on purpose? Pat -- Patrick Burns pburns at pburns.seanet.com twitter: @portfolioprobe
2012 Jun 25
1
Replacing text with a carriage return
I have a comma separated data file with no carriage returns and what I'd like to do is 1. read the data as a block text 2. search for the string that starts each record "record_start", and replace this with a carriage return. Replace will do, or just add a carriage return before it. The string is the same for each record, but it is enclosed in double quote marks in the file.
2008 Aug 11
1
Unwanted carriage returns storing dataframes with dbWriteTable
If I save a dataframe with a character-typed last column to a relational database with dbWriteTable, the values in the last column of the resulting table in the database will have a '\r' (carriage return) appended. If I read back the dataframe with dbReadTable the last column in the resulting dataframe has also '\r' appended (see protocol below). Setting or unsetting sql-mode
1999 Jul 16
3
Carriage Returns in files after copying
I apologize in advance if I'm wasting bandwidth with a simple question, but I was unable to find a solution for this problem in the documentation... I've got a set of shares set up on a SUN Enterprise 5500 using Samba 2.0.4. In Windows NT, I map a drive to the share. When I copy a text file from Windows NT to the SUN, editing the file in UNIX shows that ^M has been added to the end of
2010 Aug 04
1
Carriage return character issue
Hi all, I imported a file (in CSV format) into R for processing, then imported the result into MySQL. However, there are *carriage return* characters (hexadecimal: *0D*) that are appended to the characters in the last field of the table. i.e *\r* appended to the character values (as shown below) Before importing into MySQL: asdf After importing into MySQL: asdf*\r* ** ** Are there any options
2006 Mar 17
4
cat(), Rgui, and support for carriage return \r...
Hi, and thanks in advance for your time. Background - I am working on a package and wish to have a routine's progress reported. The routine can take some time, and I would like to inform the user about the routine's progress. I have scoured the archives but to no avail, so would like to solicit input from this list. I am successfully using cat("\rBootstrap replication ", i,
2011 Jun 22
0
jslint and carriage returns
Hi, jslint doesn''t seem to like the carriage returns in the mapstraction files. Is there a way around this? I didn''t see an option for it. -Mike
2008 Oct 13
1
Perl CGI scripts - stripping out unwanted carriage returns etc
I have a number of perl CGI scripts which I wrote some time ago (and which are working successfully on my website). I've set up a local server on which to do some development work on the scripts but I can't get them to work - the error log says: No such file or directory: exec of '/var/www/cgi-bin/script.cgi' failed Premature end of script headers: script.cgi etc By comparing
2010 May 11
1
has_one/belongs_to -- accessing the subordinate
With a has_one/belongs_to relationship, what''s the best way to guarantee that the belongs_to object gets created and is accessible alongside the has_one object? I *think* the after_create callback is a good choice, but I discovered an oddity while trying it. F''rinstance, if every horse has a carriage: ============ ActiveRecord::Schema.define do create_table(:horses) {|t|
2008 Jul 16
2
Postgres text field returns wrong data
I am having an interesting problem. I have a Postgres database with a table containing a text field. In the text field is stored data that in some cases has a ''*'' and a newline return as the first line first few characters followed by several other lines. The strange part is when a record is written the data looks correct, however, when the record is read all line feed and
2006 Jul 05
3
splitting a story with double-spaced para''s
Quick question - if i want to separate a long string of text, separated by single carriage returns, into an array of paragraphs, I can use the following code: paragraphs = article.content.split("\n") The "\n" means a carriage return, as far as I can tell. If I wanted to take text, that had been written using the more common double carriage returns, into an array of
2008 Mar 03
0
Escape carriage returns (\r)?
Hi, I was trying to get Google Calendar to import a gem-generated file with no luck (it kept giving me the unhelpful message "parse error," even though http://severinghaus.org/projects/icv/ accepted the file as valid). After a bunch of screwing around, I changed line 148 of component.rb to include a .gsub("\r", "\\r"), which fixed the problem. It seems like line
2003 Aug 21
1
Cisco 79xx XML carriage returns/line feeds
Hi All, I've been developing all sorts of applications for use on our 79xx handsets but am having great difficulty with formatting, I just can't seem to be able to produce a line feed between lines on the stuff actually displayed on the phone. Has anyone else has experience or success with this ? Cheers, Adam ********* DISCLAIMER ********* This message and any attachment are
2017 Feb 04
4
Greeter openssh 7.4 is not according rfc4253.
Hi, I discovered when using my fuse fs for connecting to a remote host using sftp that the new server version 7.4 sends a greeter which is not according the format desribed in https://tools.ietf.org/html/rfc4253#section-4 There is written that the greeter "MUST be terminated by a single Carriage Return (CR) and a single Line Feed (LF) character (ASCII 13 and 10, respectively)." Now