I am new to shell scripting, i need your help to tackle a problem.
I have a single file, sample is below:
Now the same file contains the following records
Now I want to get all the msisdns values (after = sign) from two different statements
INFO line [ msisdn = 130174, bonus = 16147, total usage = 161471 ]
INFO AIR credit operation success [ msisdn = 130174]
compare them, in case they are equal i want to output them like displayed below
The values that are not found in both sets of data can be output in an error file
Guys i need help to create this logix in UNIX/Solaris machine. So far i am unable to use the scripting knowledge that i have to perform this function.
Hi,
Can anyone please help me on building the logic for writing a shell script which can delete blank lines from a file and count the number of duplicate lines in a file.
Thanks,
Indra (2 Replies)
Hi all,
We have a requirement like we need to create a program which will change a particular string in the file. For example
+=KA1238767 1121 3344645 686943 22356
01 567893 12435 12121 983627 121 1092 091217
02 may be for engine failure
In the above file we need to change the bold string... (2 Replies)