LINUX.ORG.RU

cvs diff Need Help


0

0

Добрый день!
Возникла проблемка 
Мне необходимо сравнивать 2 версии файла из CVS как это делать понятно,
в результате мы получаем результат такого плана :

136,138c139,141
< //LOGIN         => $HTTP_COOKIE_VARS["login"],
< LOGIN   => $login,
<
---
> LOGIN   => $HTTP_COOKIE_VARS["login"],
> PROTOCOL                => $config["protocol"],
> SERVER_NAME     => $SERVER_NAME,
152c155
< SUBSCRIBEFORM   => $subscribeform,
---
> SUBSCRIBEFORM           => $subscribeform,
154a158,160
> CONTACT_TXT             => $resource["common"]["contact_txt"],
156d161
<

Теперь вопросы :)
1) Что это за загадочные цифры которые CVS вставляет и что они значат? 
2) Могу ли я получить номера строк в которых произошли изменения ?

Спасибо
С уважением КорК

Спасибо за совет но я преждем чем задавать вопрос обычно читаю ман. И после Вашего замечания перечитал еще раз Не помогло То lg: не могли бы вы ткнуть носом в то место где это обьясняется в мане ?

Вопрос отсается в силе

С уважением КорК

KorK
() автор топика

извини .. ну не помог man - почитай info man
на тему Output formats

lg ★★
()

Diff Default Output Format

The default (without -e, -f, -c or -C options) diff utility output contains lines of these forms:

"%da%d\n", <num1>, <num2>

"%da%d,%d\n", <num1>, <num2>, <num3>

"%dd%d\n", <num1>, <num2>

"%d,%dd%d\n", <num1>, <num2>, <num3>

"%dc%d\n", <num1>, <num2>

"%d,%dc%d\n", <num1>, <num2>, <num3>

"%dc%d,%d\n", <num1>, <num2>, <num3>

"%d,%dc%d,%d\n", <num1>, <num2>, <num3>, <num4>

These lines resemble ed subcommands to convert file1 into file2. The line numbers before the action letters
pertain to file1; those after pertain to file2. Thus, by exchanging a for d and reading the line in reverse order,
one can also determine how to convert file2 into file1. As in ed, identical pairs (where num1 = num2) are
abbreviated as a single number.

Following each of these lines, diff will write to standard output all lines affected in the first file using the format:

"<%s", <line>

and all lines affected in the second file using the format:

">%s", <line>

If there are lines affected in both file1 and file2 (as with the c subcommand), the changes are separated with a
line consisting of three hyphens:


Die-Hard ★★★★★
()

пришел домой и только что заметил что написал info man :)))
Kork ты уж не обижайся если я тебя сконфузил немного ..
просто в разгаре рабочего дня да еще с такой скоростью печати - я просто не успеваю читать то что пишу :)
конечно имелось ввиду info man .. ой info diff :))

lg ★★
()

То lg: спасибо помогло :)

KorK
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.