Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

how to remove specific character from string

$
0
0

PLease read entire post before responding

 

I would like to remove ",1" located on the far right of my text file. Without removing ",1" that appears elsewhere in the text file. The text files shown below are executed in the autoit script.

 

I want the code to keep the bold ",1" but remove the bold+italicized ",1" 

 

Time,Mode,Band,Channel,Freq,LNA0_RX0,LockDetect
2013/07/19 20:17:13,GSM,PCS-1900, 512,1930.200, -111.27,1
2013/07/19 20:17:19,GSM,PCS-1900, 513,1930.400, -111.82,1
2013/07/19 20:17:25,GSM,PCS-1900, 514,1930.600, -111.88,1
2013/07/19 20:17:30,GSM,PCS-1900, 515,1930.800, -111.92,1
2013/07/19 20:17:36,GSM,PCS-1900, 516,1931.000, -111.93,1
2013/07/19 20:17:42,GSM,PCS-1900, 517,1931.200, -111.89,1
 
 
How do i modify my existing code that successfully removes   ",   23.00" from my text file? The autoit code for how I successfully removed 23.00 is attached. As you can tell its easier to remove "23.00' than ",1". 
 
 
Time,Mode,Band,Channel,Freq,LNA0_RX0,LNA0_RX1,TARGET_TX_PWR
2013/07/19 19:02:46,LTE,25-1930-10MHz,8040,1930.000,  -93.14,  -92.09,   23.00
2013/07/19 19:02:46,LTE,25-1930-10MHz,8041,1930.100,  -92.97,  -91.94,   23.00
2013/07/19 19:02:47,LTE,25-1930-10MHz,8042,1930.200,  -93.00,  -91.99,   23.00
2013/07/19 19:02:47,LTE,25-1930-10MHz,8043,1930.300,  -93.10,  -91.98,   23.00
2013/07/19 19:02:47,LTE,25-1930-10MHz,8044,1930.400,  -93.93,  -92.92,   23.00
2013/07/19 19:02:48,LTE,25-1930-10MHz,8045,1930.500,  -93.10,  -92.10,   23.00
2013/07/19 19:02:48,LTE,25-1930-10MHz,8046,1930.600,  -93.69,  -92.62,   23.00
2013/07/19 19:02:48,LTE,25-1930-10MHz,8047,1930.700,  -93.09,  -91.95,   23.00
2013/07/19 19:02:49,LTE,25-1930-10MHz,8048,1930.800,  -93.64,  -92.67,   23.00
 
 
 
 
 
 

Attached Thumbnails

  • remove code.PNG

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>