Running cut with -c, the --output-delimiter option is ignored

Solution Verified - Updated -

Issue

  • Using the --output-delimiter option with cut -c doesn't work. The --output-delimiter option is ignored. (Note that cut behaves as expected in Fedora 17.)

    [user@RHEL]$ echo 1234567890 | cut -c1-3,6-7,9-10 --output-delimiter=,
    1236790
    ------------
    [user@FEDORA]$ echo 1234567890 | cut -c1-3,6-7,9-10 --output-delimiter=,
    123,67,90
    

Environment

  • coreutils
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.