jrepl question on how to reverse a command

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
rcmpayne
Posts: 10
Joined: 08 Sep 2017 07:01

jrepl question on how to reverse a command

#1 Post by rcmpayne » 13 Feb 2018 13:32

I am using the following to take all log lines that does not have a timestamp to the line above. This is working great, however, I was wondering if someone can advise how I could reverse this? The reason for doing this is to merge gigs of server logs and grep/sort them by timestamp and cut into smaller files. After the sort is done, and I have manageable logs, I'd like to reverse this to get the xml and exceptions back the way it was.

found here viewtopic.php?f=3&t=8115

Code: Select all

jrepl.bat "\r?\n(?!\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\d(-|\+)\d{4})(?:\t| |\r?\n(?!\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\d(-|\+)\d{4}))*" " " /m /f "%%a" /o -

Post Reply