Search Results

Search: Posts Made By: pd2
1,213
Posted By pd2
Hello friends , I need help with passing...
Hello friends ,

I need help with passing array variabls in sed command on unix. I tried below command and it picks up the value from array but something is wrong as it throws garbled sed....
2,677
Posted By pd2
DOH!! How I can be so stupid not tried "" or ''...
DOH!! How I can be so stupid not tried "" or '' ..both are working . but Isn't there a way without puting " " or '' we can treat all passing argument as a string that optarg shud hold.

Any way...
2,677
Posted By pd2
Hello friends, Your help is highly...
Hello friends,

Your help is highly appreciated to get list of all parameters ($@) passing as an argument to option U in below code - patch_upgrade. Here I am passing list of patches as an...
2,677
Posted By pd2
case statement for different cmd arguments
Hello friends,

I have a boubt passing different arguments at a time for any one option in below code.
I would also like to check which option has been selected (any one of i, r, u ) so that...
5,660
Posted By pd2
You are awesome, Scrutinizer! It (OFS== ) did...
You are awesome, Scrutinizer! It (OFS== ) did work with /usr/xpg4/bin/awk on my sunOS server. I have small doubt - why 1' and OFS in A{$2=A[$1]}1' OFS== is needed. What is their significance?
5,660
Posted By pd2
Unfortunately not getting what you got .. -:( ...
Unfortunately not getting what you got .. -:(
$>/tmp# awk -F= 'NR==FNR{A[$1]=$2;next}$1 in A{$2=A[$1]}1' OFS='\=' infile1 infile2
awk: syntax error near line 1
awk: bailing out near line 1

So...
5,660
Posted By pd2
Hi Scrutinizer, I appreciate your reply and time...
Hi Scrutinizer, I appreciate your reply and time on this. I tried your command and found below error

awk -F= 'NR==FNR{A[$1]=$2;next} $1 in A{$2=A[$1]}1' OFS='\=' test.cfg test.property
awk:...
5,660
Posted By pd2
awk substitution of values from onefile to another
Hello Friends,

I am new to unix, trying to use awk/sed utility to substitute all matching variable values from config file to property file , but failing to do so , could you please help me here...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 06:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy