79256597

Date: 2024-12-06 00:43:20
Score: 3
Natty:
Report link

I successfully used the below batch, however Original.txt has spaces (in between each line there is 1 CRLF) and Reversed.txt removes all CRLF (Carriage Return/Line Feed).

Is there a way to keep the CRLFs in Reversed.txt?

@echo off
setlocal EnableDelayedExpansion

rem/> Reversed.txt
for /F "delims=" %%a in (Original.txt) do (
   (
   echo(%%a
   type Reversed.txt
   ) > temp.txt
   move /Y temp.txt Reversed.txt > NUL
)
Reasons:
  • Blacklisted phrase (1): Is there a way
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Eta Beta