【问题标题】:Batch file to remove carriage return (New Line)删除回车的批处理文件(新行)
【发布时间】:2012-11-17 23:48:04
【问题描述】:

我需要帮助才能从我的文本文件中换行。

示例数据:

mango apple grapes peanut
mango apple grapes peanut
mango apple grapes peanut
mango apple grapes peanut

想要的输出:

mango apple grapes peanut mango apple grapes peanut mango apple grapes peanut mango apple grapes peanut

只有在一行上才会起作用。

【问题讨论】:

标签: shell return linefeed


【解决方案1】:
@Echo OFF

:: By Elektro H@cker

FOR /F "Usebackq Tokens=*" %%@ IN ("File.txt") DO (
    <NUL Set /P "=%%@"
)

Pause&Exit

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-18
    • 1970-01-01
    • 2021-09-18
    相关资源
    最近更新 更多