On Wed, Aug 29, 2012 at 12:25:29PM -0700, Gordon Messmer wrote:
On 08/29/2012 09:52 AM, Markus Falb wrote:
From:
http://www.unix.com/unix-dummies-questions-answers/117504-question-cut-comma... [quote] ... In AIX (for example) if you said Code: echo 1,2,3,4,5 | cut -d, -f3,1,5 you would get output as 3,1,5
I tend to think that AIX is not posix compliant, then. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cut.html
Well, according to that document, AIX's cut seems to behave as POSIX and Scott (on unix.com) is simply wrong about the application's behavior.
No need to guess about what AIX does: $ uname -svr AIX 1 6 $ oslevel 6.1.0.0 $ echo 1,2,3,4,5 | cut -d, -f3,1,5 1,3,5 $