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


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 !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-24-2012
Registered User
 
Join Date: Dec 2011
Posts: 84
Thanks: 29
Thanked 0 Times in 0 Posts
awk: multiple gsub in a script

%%%%%

Last edited by lucasvs; 05-01-2012 at 05:17 AM..
Sponsored Links
    #2  
Old 03-24-2012
Scrutinizer's Avatar
Moderator
 
Join Date: Nov 2008
Location: Amsterdam
Posts: 7,341
Thanks: 144
Thanked 1,754 Times in 1,591 Posts
There is one closing brace missing. It may be that your input file differs from your sample, for example, when it contains some tabs instead of spaces. What happens when you cut and paste your example back into a new file and test on that?
The Following User Says Thank You to Scrutinizer For This Useful Post:
lucasvs (03-25-2012)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script to find & replace a multiple lines string across multiple php files and subdirectories spfc_dmt Shell Programming and Scripting 12 03-07-2012 09:05 AM
awk + gsub to search multiple input values & replace with located string + extra text dazhoop Shell Programming and Scripting 2 01-24-2012 01:12 PM
Awk script gsub optimization Akshay Shell Programming and Scripting 6 08-31-2010 10:04 AM
Help with AWK and gsub npolite Shell Programming and Scripting 4 11-15-2007 03:21 PM
use var in gsub of awk summer_cherry Shell Programming and Scripting 1 10-15-2007 05:01 AM



All times are GMT -4. The time now is 05:12 PM.