The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Поиск:  Каталог документации

Example of contrasting files with the sdiff command

To contrast two files:

   sdiff -w 80 email addresses
   Mike erpl08@ed                  | John erpl08@ed
   Joe  [email protected]                Joe  [email protected]
                                   >  Jean [email protected]
                                   >  Jim  jim@frolix8
   Kim  [email protected]                    Kim  [email protected]
   Sam  s.wally@aston              <
   Keith keith@festival            Keith keith@festival

This contrasts the two files email on the left and addresses on the right.

The option -w 80 is used to set the width of the output from the command to 80 characters - the most that will fit across most computer terminals. The default is 130 characters.

The first line in each file is different and is marked with a |. Lines 3 and 4 of the file addresses are unique as is line 6 of the file email. All the other lines are identical.


[Home] [Search] [Index]



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру