windows - Moving text file and type conversion in command line -
i need convert multiple unix files pc , move them specific folder, without keeping original unix file.
i tested commands below , worked, type command keeps original unix file , creates separate pc file.
c:\ type input_filename | more /p > output_filename <<< command conver unix ansi, works perfect. c:\ move c:\users\you\somefile.txt c:\temp\newlocation.txt <<< move file location, work perfect.
i know if there's way use type , move command together, similar this:
c:\move c:\users\you\somefile.txt type more /p >c:\temp\newlocation.txt
so move unix file directory while changing format windows.
cd /d "c:\users\you\" %%i in (*.txt) ( echo processing %%i type "%%i" | more /p > "c:\temp\%%i" del "%%i" )
Comments
Post a Comment