Batch Splitting a file after a certain word

July 20, 2011 at 13:29:31
Specs: Windows XP
Hello!

I'm new with batch programming, i need a batch to split a file, my file is called camp856*.dat please review below example:


ship|1|9251230000|9251230000|08|00|||||||||Pflug Packaging
order|1|9251230000|9251230000|08|103706|0820786761|||||000000200000008711
load|1|9251230000|9251230000|08|1|103706|000000200000008711|
ship|1|9251230000|9251230000|08|00|||||||||Pflug Packaging
order|1|9251230000|9251230000|08|103706|0820768644|||||000000200000019373
load|1|9251230000|9251230000|08|1|103706|000000200000019373|

I need one file for every time a new ship record is found. Also the new files need to be named camp856 then maybe timestamp or something unique in a dat format (sorry if this is a pain it is for EDI use)

I appreciate any help with this!

Thanks :)


See More: Batch Splitting a file after a certain word

Report •


#1
July 20, 2011 at 22:42:37
Please don't double post http://www.computing.net/answers/pr...


Please come back & tell us if your problem is resolved.


Report •
Related Solutions


Ask Question