1

I have a text file and I wish to remove its first character with command line batch file. I cant read the content of the file to a var with set /p var= <myfile because its a big file ( > 8KB) I just need the first character, if its a whitespace, to remove it.

4

1 回答 1

2

使用 GnuSed:

@echo off
sed "1s/^[ \t]//" file.txt >file2.txt

感谢 Endoro 的简化。

于 2013-07-24T13:25:16.153 回答