Socket
Book a DemoInstallSign in
Socket

rows2cols

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rows2cols

1.0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

rows2cols

rows2cols is a script for transposing rows to columns. It accepts both files and standard input, and allows custom separators.

For example, if you want to turn:

The
quick
brown
fox
jumped
over
the
dog

Into:

The quick brown fox
jumped over the dog

You could call:

rows2cols -c 4 -s ' ' file.txt

The default separator character is a space, and the default number of columns is four, so we could also call this as:

rows2cols file.txt

Output is printed to standard output, so rows2cols plays nicely with text processing pipelines.

Usage: rows2cols [options] [file, file...]
	-c, --columns N                  Number of columns (default 4)
	-s, --separator CHAR             Separator character between columns (default space)
	-h, --help                       Display this help

Installation

$ gem install rows2cols

Contributing

  • Fork it ( http://github.com/robmiller/rows2cols/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 26 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.