I have a bi-lingual database of a large number of dictionaries. It so happens that in some a given string is in upper case and in others it is in lower case. An example will illustrate the issue.
toll Tax=-
Toll tax=
toll tax=
I want to treat all three instances of
toll tax
as one and map them as under:
toll tax=-, ,
I have an awk script which merges all such mappings, but it fails on instances where lower and upper case are involved
I am giving the script below
#script to merge columns to rows if the LH string is identical
BEGIN{FS="="}
!a[$1]++ {printf RS $1 FS $2 ;next}{printf "," $2}
How do I modify the script such that it will ignore the cases mentioned above and merge all three to
toll tax=-, ,
I could convert the whole database to lower case but that is not feasible since some strings such as Acronyms need to be maintained in uppercase.
My operating system is Windows.
Many thanks for helping out and all good wishes for the New Year.