how to Echo to the begining of the file

eyal Edri eyale at udi.co.il
Mon Oct 8 04:57:54 EDT 2001


This is a multi-part message in MIME format.

------=_NextPart_000_002F_01C14FE8.40715260
Content-Type: text/plain;
	charset="windows-1255"
Content-Transfer-Encoding: 7bit

Hi admins ,

This is probably a very simple Question , but i couldnt quite find a
specific answer to it.
I want to know if there is a way to user echo/printf/cat to write a text to
the begining of a file ,
or to any other location , instead of appending it to the end.
I know this can be done with a script using head&tail.

thanks.


Best Regards,

Eyal Edri
Unix System Administrator
Avaya Inc

Email : eedri at avaya.com
Phone & Fax : 972-3-6458487




------=_NextPart_000_002F_01C14FE8.40715260
Content-Type: text/html;
	charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dwindows-1255">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.4720.25">
<TITLE>how to Echo to the begining of the file </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P DIR=3DLTR><FONT SIZE=3D2 FACE=3D"Arial">Hi admins , </FONT></P>

<P DIR=3DLTR><FONT SIZE=3D2 FACE=3D"Arial">This is probably a very =
simple Question , but i couldnt quite find a specific answer to it. =
</FONT></P>

<P DIR=3DLTR><FONT SIZE=3D2 FACE=3D"Arial">I want to know if there is a =
way to user echo/printf/cat to write a text to the begining of a file =
,</FONT></P>

<P DIR=3DLTR><FONT SIZE=3D2 FACE=3D"Arial">or to any other location , =
instead of appending it to the end.</FONT></P>

<P DIR=3DLTR><FONT SIZE=3D2 FACE=3D"Arial">I know this can be done with =
a script using head&amp;tail. </FONT></P>

<P DIR=3DLTR><FONT SIZE=3D2 FACE=3D"Arial">thanks. </FONT></P>
<BR>

<P DIR=3DLTR><SPAN LANG=3D"en-us"><FONT FACE=3D"Times New Roman">Best =
Regards,</FONT></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"><FONT COLOR=3D"#FF0000" FACE=3D"Times =
New Roman">Eyal Edri </FONT></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"><FONT COLOR=3D"#339966" FACE=3D"Times =
New Roman">Unix System Administrator </FONT></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"><FONT COLOR=3D"#3366FF" FACE=3D"Times =
New Roman">Avaya Inc</FONT></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"><B><FONT COLOR=3D"#3366FF" =
FACE=3D"Times New Roman">Email</FONT></B> <FONT COLOR=3D"#3366FF" =
FACE=3D"Times New Roman">: eedri at avaya.com</FONT></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"><B><FONT COLOR=3D"#3366FF" =
FACE=3D"Times New Roman">Phone</FONT></B><FONT COLOR=3D"#3366FF" =
FACE=3D"Times New Roman"> &amp; Fax :</FONT><B> <FONT COLOR=3D"#3366FF" =
FACE=3D"Times New Roman">972-3-6458487 </FONT></B></SPAN></P>

<P DIR=3DLTR><SPAN LANG=3D"en-us"><B><FONT COLOR=3D"#3366FF" =
FACE=3D"Times New Roman">&nbsp;</FONT></B></SPAN></P>
<BR>

</BODY>
</HTML>
------=_NextPart_000_002F_01C14FE8.40715260--




More information about the sunmanagers mailing list