Search Results

Search: Posts Made By: rmkganesh
9,936
Posted By RudiC
Howsoever, tryawk -F= ' BEGIN ...
Howsoever, tryawk -F= '
BEGIN {HD = "Cust-Number,Cust-Name,Cust-Town,Cust-purchase"
print HD
HDCnt = split (HD, HDArr, ",")
...
2,219
Posted By Scrutinizer
Try using && rather than and --- And...
Try using && rather than and


---
And try something like:
awk -v DUMMY="case" -v VAR="exp" '{if(tolower($0)~DUMMY) s="HOLD"; else if($0~VAR) s="IA"; else s="SUCC"; print s, $0} file

Output:...
5,475
Posted By Don Cragun
Rmkganesh, The awk utility uses extended...
Rmkganesh,
The awk utility uses extended regular expressions (EREs). The ERE ^[0-9]+(\.[0-9]*)? will match any string in which the 1 or more (+) decimal digits ([0-9]) followed by zero or one...
Showing results 1 to 3 of 3

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