Search Results

Search: Posts Made By: Shell_Learner
2,508
Posted By pravin27
I have tried my best to explain . first is a...
I have tried my best to explain .

first is a variable name. here i am using as flag.
NF- No. of fields in a record.


{if(first==1){print $9;first=0;next} #variable first is not having value...
2,508
Posted By pravin27
try this, awk -F"|" ' {if(first==1){print...
try this,
awk -F"|" '
{if(first==1){print $9;first=0;next}for(i=1;i<=NF;i++){
if ($i~/\$AB_COMPONENTS/) {
split($i,a,"/");print substr(a[3],1,(index(a[3],"."))-1);first=1;
}}}' inputfile
Showing results 1 to 2 of 2

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