RE: CNTRL characters in UNIX ...

RE: CNTRL characters in UNIX ...

 

  

One way to remove control characters from a text file is to use tr. For
example to remove carriage returns:

tr -s '\013' <infile >outfile

or

tr -s '\r' <infile >outfile

To insert control characters into a file you can use vi. While in
insert mode, press cntrl-v followed by the letter. For example: to
insert escape, press cntl-v followed by escape followed by the escape
sequence. Or, to insert a carriage return, press cntl-v followed by
cntl-m. Escape shows up as ^[ and CR as ^M.

-----Original Message-----
From: Newbie-dba
[mailto:oracledba-ezmlmshield-x80633429.[Email address protected]
Sent: Wednesday, November 30, 2005 6:41 PM
To: LazyDBA Discussion
Subject: CNTRL characters in UNIX ...

Hi all,
Can someone remind me how do I alias the control characters again in
UNIX or redirect them to a file so I can alias them? I know I cannot
just type in the caret and the alpha characters and I cannot remember
how to, brain is a bit blank at the moment ...



--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com To unsubscribe:
see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com By using this list you agree
to these terms:http://www.lazydba.com/legal.html



--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

Douglas County, Oregon
www.co.douglas.or.us


Oracle LazyDBA home page