pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Sawtell <csawtell@xtra.co.nz>
To: Brice Ruth <brice@webprojkt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Fork <mfork@toledolink.com>
Cc: Ian Harding <iharding@pakrat.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?
Date: Thu, 8 Feb 2001 11:00:42 +1300
Message-ID: <01020811004200.00373@berty> (raw)
In-Reply-To: <3A817A1F.8544A75C@webprojkt.com>
References: <Pine.BSI.4.21.0102070915290.197-100000@glass.toledolink.com>
	<28516.981562472@sss.pgh.pa.us>
	<3A817A1F.8544A75C@webprojkt.com>

On Thu, 08 Feb 2001 05:38, Brice Ruth wrote:
> Is there a simple (unix) command I can run on text files to convert
> cr/lf to lf?  The way I did it seemed pretty ass-backward to me (not to
> mention time consuming).

This little heiroglyph will convert all text files rescued from that man's 
system in a single directory to the format required by the one true way. 

for f in `echo *`;  #  Change this to select files by regex if needed
do
 echo $f;
 cat $f | tr -d "\015\032" > $f.unix; 
 mv $f.unix $f;
done 

Don't forget to remove the control Z file terminator as well as the 
superfluous CRs. It could cause very obtuse problems. Assumes you have 
write permission to the directory.



view thread (29+ messages)

Message-ID: <01020811004200.00373@berty>
Permalink:  ../01020811004200.00373@berty/
Also on:    postgresql.org/message-id/01020811004200.00373@berty

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: csawtell@xtra.co.nz, brice@webprojkt.com, tgl@sss.pgh.pa.us, mfork@toledolink.com, iharding@pakrat.com, pgsql-general@postgresql.org
  Subject: Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?
  In-Reply-To: <01020811004200.00373@berty>
  References: <Pine.BSI.4.21.0102070915290.197-100000@glass.toledolink.com> <28516.981562472@sss.pgh.pa.us> <3A817A1F.8544A75C@webprojkt.com> <01020811004200.00373@berty>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox