Sort Command - Writing Output to File
Posted on 2006-07-07
I'm attempting to use the sort command to sort a postfix transport.map file into alphabetical order. when I am logged into the box, and su'd I can go to the directory, and type "sort transport.map" and it correctly displays what I want to stdout. However when I try to write the output to a file it generates a blank file.
sort -o transport2.map transport.map
sort transport.map -o transport2.map
sort transport.map > transport2.map
I've also tried all the previous using full path names. Any ideas what I am doing wrong?
Thanks in advance.