LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] sed question

[ILUG] sed question

P at draigBrady.com P at draigBrady.com
Mon Aug 9 14:30:04 IST 2004


Ciaran Mac Lochlainn wrote:
> First of all, I'm not sure if sed is even the right tool for this job, 
> but here goes-
> 
> I need to send a stream of output from a .net app on a windows box (or 
> boxen) to a serial port on a Linux machine.  Each line has to contain a 
> preamble which includes unprintable characters.  The .net app writes 
> these in Unicode (e.g. \340 is written as \303\240) which the hardware 
> device on the serial port can't interpret.
> 
> I thought of using a sed script on the Linux box to add the preambles 
> instead, but I don't know how to get it to echo unprintable characters.  
> I can get it to add text so long as it's in 7 bits.

When editing the sed script in vim,
hit Ctrl-V 027 to insert that char.

-- 
Pádraig Brady - http://www.pixelbeat.org
--- Following generated by rotagator ---

Shell auto completion

Autocompletion is a feature provided by shells to complete any
part command from the console. For different shells these are:

Shell                          csh        ksh       bash
Single option completion       Esc-Esc    Esc-Esc   Tab
Unresolved reference menu      Ctrl-D     Esc =     Tab-Tab

Note bash has programmable auto completion which can be very handy.
--



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell