New answers tagged cygwin
Check the locale setting on the machines. The sort order depends on the regional settings.
The output of each awk processed line is terminated in a linefeed (\n) which is the Unix/Linux standard. Windows/DOS expects a carriage return followed by a linefeed to mark the end of the line (\r\n). notepad will display all Linux generated files as you are currently seeing them. To resolve, pipe the output of awk through the unix2dos command, which ...
I managed to convert the output file's line delimiters to dos style with unix2dos. $ unix2dos my.txt unix2dos: converting file cdc_1.1.jar.txt to DOS format...
Top 50 recent answers are included