[SunHELP] (no subject)

DAUBIGNE Sebastien - BOR ( SDaubigne@bordeaux-bersol.sema.slb.com ) SDaubigne at bordeaux-bersol.sema.slb.com
Thu Oct 10 04:37:32 CDT 2002


echo "PAT1mytextPAT2" | sed 's/PAT1\(.*\)PAT2/\1/g'

---
Sebastien DAUBIGNE
sdaubigne at bordeaux-bersol.sema.slb.com <mailto:sebastien.daubigne at sema.fr>
- (+33)5.57.26.56.36
SchlumbergerSema - SGS/DWH/Pessac


	-----Message d'origine-----
	De:	Thomas Cameron [SMTP:Thomas.Cameron at CameronTech.com]
	Date:	jeudi 10 octobre 2002 03:50
	@:	sunhelp at sunhelp.org
	Objet:	Re: [SunHELP] (no subject)

	[thomas.cameron at ns1 thomas.cameron]$ cat sample.txt
	Now is the time
	for all good men
	to come to the aid
	of their country.

	The quick brown
	fox jumps over
	the lazy dog.
	[thomas.cameron at ns1 thomas.cameron]$ cat sample.txt | tr "\n" " "
	Now is the time for all good men to come to the aid of their
country.  The
	quick brown fox jumps over the lazy dog.

	Can't help you on the second one.

	Thomas
	----- Original Message -----
	From: "Philips Anwin-Q16166" <anwin at motorola.com>
	To: <sunhelp at sunhelp.org>
	Sent: Wednesday, October 09, 2002 12:26 AM
	Subject: [SunHELP] (no subject)


	> Hi all
	>
	> I am writing a bash shell script. Can anyone suggest me a command
to
	remove all newline characters from a file?
	> also a command to extract the text between two patterns in a file.
	>
	> Thanks in advance.
	>
	> Regds
	> Anwin Philips
	> _______________________________________________
	> SunHELP maillist  -  SunHELP at sunhelp.org
	> http://www.sunhelp.org/mailman/listinfo/sunhelp
	_______________________________________________
	SunHELP maillist  -  SunHELP at sunhelp.org
	http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list