| | |
String search in a file compare?
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
![]() |
•
•
Join Date: Jul 2004
Posts: 17
Reputation:
Solved Threads: 0
Hi ya,
I looked up "fc" and "for" in DOS commands but unable to find the solution I desired.
I would want to edit a command into a .bat file that could search a particular field in a line (the line might be of different sequence order) in a .dat file (could be opened up to read as a text file) and compare with another .dat file.
For example, the .dat file would looks something like this :
UsageCounter158555
ConsecutiveCounter0999
AccessoryCounter157333
Any kind soul out there knows if there any DOS command or how am I able to, say compare the "999" field of ConsecutiveCounter between 2 such .dat files and possibly have a return value like 1 or 0 to indicate if the search is successful?
I looked up "fc" and "for" in DOS commands but unable to find the solution I desired.
I would want to edit a command into a .bat file that could search a particular field in a line (the line might be of different sequence order) in a .dat file (could be opened up to read as a text file) and compare with another .dat file.
For example, the .dat file would looks something like this :
UsageCounter158555
ConsecutiveCounter0999
AccessoryCounter157333
Any kind soul out there knows if there any DOS command or how am I able to, say compare the "999" field of ConsecutiveCounter between 2 such .dat files and possibly have a return value like 1 or 0 to indicate if the search is successful?
![]() |
Similar Threads
Other Threads in the Computer Science Forum
- Previous Thread: i want to know how to create a file maintenance using visual basic 6.0
- Next Thread: minimum weight perfect matching
| Thread Tools | Search this Thread |
ai algorithm algorithms amazon assignment assignmenthelp assignments automata battery bigbrother binary bittorrent bizarre bletchleypark blogging business cern codebreaker compiler computer computers computerscience computertrackingsoftware connect conversion csc dataanalysis dataintepretation development dfa dissertation dissertations dissertationthesis dissertationtopic ebook employment energy floatingpoint foreclosure foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homeworkassignment humor ibm idea ideas internet iphone ipod itcontracts jobs kindle laser laws lsmeans mainframes marketing mobileapplication msaccess nano netbeans networking news os p2p piracy piratebay principles programming rasterizer research sam-being-cute sas science security sex simulation software spying stephenfry study supercomputer supercomputing sweden technology textfield turing turingtest two'scompliment uk virus ww2





