Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?

From: Christopher Sawtell <csawtell(at)xtra(dot)co(dot)nz>
To: Brice Ruth <brice(at)webprojkt(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Michael Fork <mfork(at)toledolink(dot)com>, Ian Harding <iharding(at)pakrat(dot)com>, pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?
Date: 2001-02-07 22:00:42
Message-ID: 01020811004200.00373@berty
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Mount 2001-02-07 22:13:25 Re: Using the JDBC Driver - users: Permission Denied
Previous Message Konstantinos Agouros 2001-02-07 20:09:07 Import Performance

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2001-02-07 22:02:15 Re: Bug reports for 7.1 beta?
Previous Message Tom Lane 2001-02-07 20:37:07 Re: Use of RETURN in pl/pgsql function