pt-alignp - Online in the Cloud

This is the command pt-alignp that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


pt-align - Align output from other tools to columns.

SYNOPSIS


Usage: pt-align [FILES]

pt-align aligns output from other tools to columns. If no FILES are specified, STDIN is
read.

If a tool prints the following output,

DATABASE TABLE ROWS
foo bar 100
long_db_name table 1
another long_name 500

then pt-align reprints the output as,

DATABASE TABLE ROWS
foo bar 100
long_db_name table 1
another long_name 500

RISKS


Percona Toolkit is mature, proven in the real world, and well tested, but all database
tools can pose a risk to the system and the database server. Before using this tool,
please:

· Read the tool's documentation

· Review the tool's known "BUGS"

· Test the tool on a non-production server

· Backup your production server and verify the backups

DESCRIPTION


pt-align reads lines and splits them into words. It counts how many words each line has,
and if there is one number that predominates, it assumes this is the number of words in
each line. Then it discards all lines that don't have that many words, and looks at the
2nd line that does. It assumes this is the first non-header line. Based on whether each
word looks numeric or not, it decides on column alignment. Finally, it goes through and
decides how wide each column should be, and then prints them out.

This is useful for things like aligning the output of vmstat or iostat so it is easier to
read.

OPTIONS


This tool accepts additional command-line arguments. Refer to the "SYNOPSIS" and usage
information for details.

--help
Show help and exit.

--version
Show version and exit.

ENVIRONMENT


This tool does not use any environment variables.

SYSTEM REQUIREMENTS


You need Perl, and some core packages that ought to be installed in any reasonably new
version of Perl.

Use pt-alignp online using onworks.net services



Latest Linux & Windows online programs