ChatGPT Writes a Batch Script
Please write bat script to replace a line in txt file Here's a Windows batch script that replaces a line in a text file: @echo off set "search=old line" set "replace=new line" set "file=file.txt" (for /f "delims=" %%i in (%%file%%) do set "line=%%i" if defined line ( set "line=!line:%search%=%replace echo(!line!
A ChatGPT conversation shows a user asking for a simple batch script to replace a line in a text file. The joke is that ChatGPT confidently generates a Windows command script, illustrating how people use it to automate basic programming tasks even when the result may be incomplete or technically questionable. EN: A ChatGPT conversation shows a user asking for a simple batch script to replace a line in a text file. The joke is that ChatGPT confidently generates a Windows command script, illustrating how people use it to automate basic programming tasks even when the result may be incomplete or technically questionable.
chat interface / интерфейс чатаcomputer screen / экран компьютераChatGPT logo / логотип ChatGPTuser avatar / аватар пользователяtext message / текстовое сообщениеcode block / блок кодаWindows batch script / пакетный скрипт Windowsblack code panel / чёрная панель кодаcopy icon / значок копированияedit icon / значок редактирования
- @ithueti / 8840 2023-02-11
- Type
- image
- Size
- 551×800 · 53.5 KiB
- Mood
- sarcastic, absurd
- Language
- en
- Added