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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -