Showing posts with label width. Show all posts
Showing posts with label width. Show all posts

Thursday, October 9, 2008

Linux:command:shell: diff

One of layouts of printout of the command 'diff' is called: --side-by-side or -y which is also useful. Change the column width, just use

-W columns

--width=columns
. An example:

diff --side-by-side -W 130 file1.txt file2.txt

Tuesday, October 7, 2008

Linux:command: seq

When printing a sequence of numbers, use 'seq'. One of arguments is '-w' or '--equal-width' which will equalize width by padding with leading zeros.

Locations of visitors to this page