ISO 8859-1 National Character Set FAQ

ISO 8859-1 National Character Set FAQ

Post by Da » Wed, 23 Aug 1995 04:00:00



Hi,
  I'm experimenting a little and ran into a little snag.  I need to
tell a script I'm writing to execute a carriage return.  Is there a way
to do this?  

TIA
Dan
--


 
 
 

ISO 8859-1 National Character Set FAQ

Post by Terry R. McConne » Wed, 23 Aug 1995 04:00:00



>Hi,
>  I'm experimenting a little and ran into a little snag.  I need to
>tell a script I'm writing to execute a carriage return.  Is there a way
>to do this?  

Try:
#!/bin/sh

/bin/echo -n "Some of this will be overwritten by the shell prompt"
/bin/echo -n " " | tr ' ' '\015'
exit

--
************************************************************************
Terry McConnell       Mathematics/215 Carnegie/Syracuse, N.Y. 13244-1150

************************************************************************

 
 
 

ISO 8859-1 National Character Set FAQ

Post by Jerry Crawfo » Wed, 23 Aug 1995 04:00:00


CR=`echo \\\015`
add_cr () {sed -e "s/${CR}*$//g; s/$/${CR}/"; }

: Hi,
:   I'm experimenting a little and ran into a little snag.  I need to
: tell a script I'm writing to execute a carriage return.  Is there a way
: to do this?  

: TIA
: Dan
: --


--