The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Weird Issue with crontab. Cameron HP-UX 3 04-21-2008 08:36 PM
a weird issue with "while" block sleepy_11 Shell Programming and Scripting 7 08-06-2007 08:33 PM
weird domain issue. thirddegreekris UNIX for Advanced & Expert Users 2 05-03-2007 09:42 PM
HP-UX weird FTP ? IngmarMeins HP-UX 10 11-29-2005 05:22 PM
Weird SSH issue AKM UNIX for Advanced & Expert Users 6 11-08-2004 11:13 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 04-11-2008
Registered User
 

Join Date: Aug 2005
Posts: 67
Hey Franklin.

I currently do echo the $random_variable variable, that is correct. I'm not sure I'm able to echo the "red" variable
Reply With Quote
Forum Sponsor
  #9  
Old 04-11-2008
Moderator
 

Join Date: Feb 2007
Posts: 2,331
Quote:
Originally Posted by Khoomfire View Post
Hey Franklin.

I currently do echo the $random_variable variable, that is correct. I'm not sure I'm able to echo the "red" variable
And the other variables?
Reply With Quote
  #10  
Old 04-11-2008
radoulov's Avatar
addict
 

Join Date: Jan 2007
Location: Milano, Italia/Варна, България
Posts: 1,935
Quote:
Originally Posted by Khoomfire View Post
When I echo $random_variable, which have done while trying to troubleshoot, I get a number - 10, 11 or 13.

I have even tried running substituting the value

nawk -F"," -v red=13 '{print $red}' $w_dir/$file_name > $w_dir/${column_name}


Still the same error.
Check if the space after -F"," is missing:

Code:
nawk -F","<space>-v red=13 ...
Reply With Quote
  #11  
Old 04-11-2008
Registered User
 

Join Date: Aug 2005
Posts: 67
Hi. I just checked everyone of those variables. Still no difference.
Reply With Quote
  #12  
Old 04-11-2008
Moderator
 

Join Date: Feb 2007
Posts: 2,331
Post the entire script and place it within code tags(!).
Reply With Quote
  #13  
Old 04-11-2008
Registered User
 

Join Date: Aug 2005
Posts: 67
Code tags??
Reply With Quote
  #14  
Old 04-11-2008
Moderator
 

Join Date: Feb 2007
Posts: 2,331
Select the code and click on the "#" symbol above the edit form.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:21 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