import json import sys # Read and extract batch file content jsonl_file = r'D:\ClaudeTools\imported-conversations\general-work\claude-general\5e058595-cbe5-4373-94ea-728e103504f5.jsonl' with open(jsonl_file, 'r', encoding='utf-8') as f: for line_num, line in enumerate(f, 1): try: data = json.loads(line) if 'content' in data: content_items = data.get('content', []) for item in content_items: if isinstance(item, dict) and item.get('type') == 'text': text = item.get('text', '') # Look for batch file code if '@ECHO OFF' in text and ('UPDATE' in text or 'STARTNET' in text or 'AUTOEXEC' in text): # Find code blocks if '```' in text: parts = text.split('```') for i, p in enumerate(parts): if '@ECHO OFF' in p or 'REM' in p[:100]: print(f"=== LINE {line_num}, BLOCK {i} ===") print(p[:3000]) print("\n" + "="*50 + "\n") except Exception as e: pass