The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Merging lines using AWK senthil_is Shell Programming and Scripting 6 03-05-2008 08:40 AM
Merging lines - Tuning the script senthil_is Shell Programming and Scripting 3 03-04-2008 11:24 PM
Merging files with AWK filtering and counting lines Meert Shell Programming and Scripting 2 01-28-2008 07:58 AM
merging two lines in a file thaduka UNIX for Dummies Questions & Answers 6 07-11-2007 06:27 AM
How to count lines - ignoring blank lines and commented lines kthatch UNIX for Dummies Questions & Answers 6 05-24-2007 10:21 PM

Reply
 
LinkBack Thread Tools Display Modes
  #8 (permalink)  
Old 06-19-2005
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,503
With your code snippet, and the sample input file you gave, the output I get is

Code:
#define hcv 54
 #define f 8
  #define s 354
 jae
 feh
  h
  f*h
  adssfh
{s/hcv/54/};{s/f/8/};{s/s/354/};
Can you copy and edit this, to show exactly what is wrong I don't fully understand your previous explanation.
Reply With Quote
Forum Sponsor
  #9 (permalink)  
Old 06-19-2005
Registered User
 

Join Date: Jun 2005
Location: Czech rep.
Posts: 7
expected

The output you got is the one I expected to be on my machine too, but reality is different. I got only
Code:
#define hcv 54
 #define f 8
  #define s 354
 jae
 feh
  h
  f*h
morfren@Morphos:~$ ;
The strange think is that ";" appears in the next bash and the last line of /tmp/test$$ is missing. So I don't got the 2 last lines you have got in your output, but have the same code. The code was a part of code which should replace definitions on their values (preprocessor). At the begining I was thinking I have bad syntax or sth like that. Now when I can see, you have the same code that I had, the main problem would be in my shell. Thank you for your help.

Last edited by Foxgard; 06-19-2005 at 03:59 AM.
Reply With Quote
Google UNIX.COM
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0