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
after grep i want to redirect it to some variable mail2sant Shell Programming and Scripting 2 04-07-2008 06:26 AM
Redirect to variable MrAd UNIX for Dummies Questions & Answers 2 05-07-2007 01:18 PM
redirect stderr and/or stdout to /dev/null from command line knc9233 UNIX for Dummies Questions & Answers 1 01-25-2007 09:24 AM
redirect command output to variable hugow UNIX for Dummies Questions & Answers 1 06-22-2005 03:43 AM
Passing the command line argument in a variable rkumar28 Shell Programming and Scripting 1 05-26-2004 12:02 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #8  
Old 03-27-2006
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,003
I though we've already solved this problem in here.

if you don't have 'nawk', try using 'awk' or 'gawk'.

I think it's somewhat ..... well how should I put it ...... not elegant [maybe] to jump through so many hoops.

Have you tried using 'eval' as previously noted?
Reply With Quote
Forum Sponsor
  #9  
Old 03-28-2006
ugh ugh is offline
Registered User
 

Join Date: Mar 2006
Posts: 7
Yes works fine thank you, I did use awk! and in defense awk seems to be very specialized and really somewhat limited on what you can do or pass into the statement. This really is a easy way to by pass those limitations without having to use nawk. I mean really with 4 lines of code your not jumping thourgh to many hoops.

Please feel free to post the same thing using just awk, I would love to compare, that would help me greatly!!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:38 AM.


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

Content Relevant URLs by vBSEO 3.2.0