The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Append string to columns from 2 files karthikn7974 Shell Programming and Scripting 3 04-28-2008 09:32 AM
append a string to a grep result melanie_pfefer Shell Programming and Scripting 8 03-19-2008 07:19 AM
Append using awk Raynon Shell Programming and Scripting 4 11-04-2007 06:19 AM
perl: simple question on string append the_learner Shell Programming and Scripting 1 05-14-2007 05:09 PM
Append string in all rows Rock Shell Programming and Scripting 7 12-01-2006 02:46 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-05-2005
beilstwh beilstwh is offline
Registered User
  
 

Join Date: Jul 2004
Location: New York State
Posts: 65
append esc string

I have a request that is simple, but I can't figure out how to do it. I have a unix file that I want to append the following string to the front of the file


<esc>&l1O<esc>(0U<esc>(s0p16.66h8.5v0s0b0T


and an


<esc>E


to the end. I know that I could do something like

cat start_file report_file end_file > new_report_file

However, I can't figure out how to save the ESCAPE character in the start and end file. I feel silly asking this, but I have never had to do it before.
  #2 (permalink)  
Old 05-05-2005
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
\033 is octal for ascii 27 esc. Try using this as a literal:
Code:
echo "\033&l1O\033(0U\033(s0p16.66h8.5v0s0b0T" > somefile
cat somefile report_file > new_report_file
  #3 (permalink)  
Old 05-11-2005
beilstwh beilstwh is offline
Registered User
  
 

Join Date: Jul 2004
Location: New York State
Posts: 65
Thank you very much
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0