Short script for tty devices

Hi everyone! I just recently register in this community to enhance my
knowledge and then eventually contribute.

For now I’m seeking for help to write short script that displays all tty
devices in linux. Below is the requirements.

  1. Ordered by increasing numbers, in 3 columns.
  2. Should accept 3 arguments, -h: display help, -r: reverse order
    listing, and -csv comma separated values (same output, no spaces,
    separated by comma).

If possible kindly put some comments so I can thoroughly read and
understand how it works.

Looking forward for the people who can help me.

Thanks and kudos to all!.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs