in reply to Re^4: splitting up a string based on character locations
in thread splitting up a string based on character locations
Again Thanks for all the help - I am learning!What you sent I took and it worked great, I have a slit modification I + need, and I am not sure how to get it working. When I have a line en +ding in a ) I want to through it out unless in the same string you fi +nd .dat, if so then I want to keep the (from exp below) 58bn5904 and +also keep the 859216 bytes. DATA: e:\logfiles\beardstownbase.log [3] Thu 22Jun06 08:07:20 - (006415) Sen +t file d:\data\58bn5904.sta successfully (1.05 Kb/sec - 61 bytes) e:\logfiles\beardstownbase.log [3] Thu 22Jun06 08:07:20 - (006415) Sen +ding file d:\data\58bn5904.sta e:\logfiles\beardstownbase.log [3] Thu 22Jun06 08:07:19 - (006415) Sen +t file d:\data\58bn5904.dat successfully (25.0 Kb/sec - 859216 bytes) e:\logfiles\beardstownbase.log [3] Thu 22Jun06 08:06:46 - (006415) Sen +ding file d:\data\58bn5904.dat Output Looking for: Skip: e:\logfiles\beardstownbase.log [3] Thu 22Jun06 08:07:20 - (006415) Sen +t file d:\data\58bn5904.sta successfully (1.05 Kb/sec - 61 bytes) Skip: e:\logfiles\beardstownbase.log [3] Thu 22Jun06 08:07:20 - (006415) Sen +ding file d:\data\58bn5904.sta Extract beardstownbase, Thu 22Jun06 08:07:19, 58bn5904, 859216 bytes e:\logfiles\beardstownbase.log [3] Thu 22Jun06 08:07:19 - (006415) Sen +t file d:\data\58bn5904.dat successfully (25.0 Kb/sec - 859216 bytes) Skip: e:\logfiles\beardstownbase.log [3] Thu 22Jun06 08:06:46 - (006415) Sen +ding file d:\data\58bn5904.dat
|
|---|