Windows Command line sort -


i have requirement want read 1 file content, sort content , write sorted content same file. sorting file.

i know less windows command. know windows sort command , not aware of writing same file.

need expert guys.

look @ of sort.exe typing sort /? in console :

/o[utput] [drive:][pathname]
file sorted input stored. if not specified, data written standard output. specifying output file faster redirecting standard output file.

sort sort.txt /o sort.txt 

or if want append result file

sort sort.txt >> c:\temp\cominedresult.txt 

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -