Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

BFS(1)

��������
bfs - ������������� ������� �����.

���������

bfs [-] name

��������
������� bfs ������ � �������� ed(1) �� ����������� ����, ��� ��� �������� ������ ��� ������ � ������������ ������� ������� �����. ����� ����� ���� �� 1024� ���� � 32� ����� � ����� �� 255 �������� �� ������. ������� bfs ������ ����� ����������, ��� ������� ed ��� ������������ �����, �.�. ���� �� ���������� � �����. ��� �������� ������� ��� ������������� ������ �������� �����, ��� ������� csplit(1) ����� ���� ������������ ��� ���������� ����� ����� �� �����, ������� ��� ��������������.

������, ������ ���������������� ����� ����������, ��� ������ ������ �����, ����������� �������� W. �������������� �������� ���� (-) ��������� ������ ��������. ���� ���������� � ������� ��������� (*), ����� ���������� "P" � RETURN. "P" ��������� ��� �������������, ���, ��� ������ ����� ���� �������� ������ ������ "P" � RETURN. ��������, ��� ��������� �������� ��� ������� �� ������ ������, ���� ������ �������.

��� �������� ���������,��������� �� ������� ed, ��������������. ����� ����,���������� ��������� ����� ���� ��������� ����� ����� ���������, ��������� �� ����������� ����� ����� (/) � (?): ���� ������(>) ��������� �� �����, ������������ ���� ��� ������������ ��������, � ���� ������ (< ) ��������� �� �����, ������������� ����� ��� ������������ ��������. ��������, ��� ������� ������ � �������� ������ �������� ������������ � �� ��� ���������� ���������� � ������� ������� �������� ����� ����� (\). ��� ��� ������� bfs ���������� ��������� ������������ � ����������� ����������� ��������� �� ed ,������� �������� ���������� ��������� ����� ���� ������� ���� �������� ����� ��������� ed � bfs ����������� ����:

+
���������� ���������, �� ������� ������� ���� +,���������� one or more times (���� ��� ����� ���).��������, [0-9]+ ������������ [0-9][0-9]*.
\{m\}\{m,\}\{m,u\}
����� ��������, ����������� � \{\} ����������, ����� ����� ��� ���������� ���������� ��������� ������ ���� ��������� . m - ����������� �����, � u - �����, �������, ��� 256, ������� �������� ������������. ���� ���� ������ m (��������, \{m\}), ��� ���������� ������ ����� ���, ����� ���������� ��������� ������ ���� ���������.\{m\} ���������� \{m,infinity\}. �������� ���� (+) � ��������� (*) ������������ �������������� \{1,\} � \{0,\}.
(...)$n
�������� ������������ � ������ ����������� ��������� ������ ������������. �������� ����� ��������� �(n+l)��� ���������, ��������� �� ����������� ����������. ����������� ����� ������ ����������� � ������ ���������� ���������. regex ��������� �� ������������ ����������.
(...)
������� ������ ������������ ��� �����������. ��������, ��������, *,+,\{\} ����� �������� � ���������� ��������� ��� ����������� �����������, ������������ � ������� ������. ��������, \(a*)(cb+\)*\)$0.

���������� ����� �������������� ������� � ������ �����: ����� ���� ������������ ������ ����� �� "a" �� "z" � ��� 26 ����� ������������.

e,g,v,k,p,q,w,=,! � ������� ������� �������� ��� ������� � ������� ed, �������� ��, ��� e �� ���������� ����� ������, � g � v , ����� �� ����� ��������, ���������� �� ������, ������������� �� �������, �� ������� �� ����������. ������� �����, ��� ---, +++-,+++=,-12 � +4p �����������. ��������, ��� ������� 1,10p � 1,10 ��� ����� ������������� ������ 10 �����. ������ ������� f �������� ��� �����, ������� ��������������; ��� ����� �� ������������.������� w �� ������� �� ����������, ����������, ���������� ������ (�� ������� xo,xt � xc ����).��������� ��������� �������������� �������:

xffile
����������� ������� ������� �� ����� � ������ file. ����� ����������� ����� �����, �������� ������ ���������� ��� ���������� ������, ������ ������������ �� �����, ����������� xf. ������� xf ����� ���� ���������� �� ������� �� 10.
xo[file]
���������� ����� �� p � ������ ������ ���������� ���������� ����� � ������ file. ���� file �������, ����� ���������� � ������������ ������. ��������, ��� ������ ���������� �������� �������� ��� �������� �����.
:label
��� �������� ����� label � ��������� �����. ����� label ����������� ����� �������, � ������� ����� : � ������� ����� label ������������. ��� ������� ����� ����� ���� ������������ ��� ������� ������������ � ��������� ����, ��� ��� �� ����� ��� ������������� ���������.
(...)xb/regular expression/label
������� ( ����� ��� ���� ) �������� �� ����� label, ���� �� ��� ������� �������. ��� �� ������� ��� ����� �� ��������� �������:
  1. ���� �� ���� ������� �� ����� ����� 1 � $.
  2. ������ ����� ������, ��� ������.
  3. ���������� ��������� �� ��������� �� ������� ���� ����� ������� � ��������� ���������,������� ������ � ��������� ������.
� ������ ������ ����� (.) �������� �� ��������������� ������ � ������� �������� �� ����� label.��� ������� ������������, ������� �� ������ ��������� �� ������ ��� �������� ������, ��� ��� ��� ����� ���� ������������ ��� �������� ����, �������� �� ������ ������� �� ���������� ������ ������. ��������, ��� ������� xb/^/label �������� ����������� ��������� .

������� xb ��������� ������, ���� ��� �������� �� � ���������. ���� ��� �������� �� ������, �� �������� ������� ������ ����.

xtnumber
����� �� p � ������ ������ ��������� �������� �� number ��������. ��������� �������� = 255.
xv[digit][spaces][value]
��� ���������� �������� ����������������� ���������� digit, ��������� �� xv. ������� Xv5100 ��� xv5 100 ��� ����������� �������� 100 ���������� 5. ������� Xv61,100p ����������� �������� 1,100p ���������� 6. ��� ���������� ���������� �� ������ ��������� % ����� ������ ����������. ��������, ��������� ������������,����������� ����, ��� ���������� 5 � 6 �����:
1,%5p
1,%5
%6
���������� ������ 100 �����.
g/%5/p
���� ������� 100 � �������� ������ ������, ���������� ����������.��� ����, ����� ���������� �� ������������ �������� % , ����� ��� ������ ���� ���� \. ��������,
g/".*\%[cds]/p
����� �������������� ��� ����,����� ����������� ������ � ��������� ������ �����, ���������� ������� printf, ���������� ����� ��� ������.

������ ����������� ������� xv ������� � ���, ��� ������ ������ ������ �� ������� ������� XENIX ����� ��������� � ���������� .

������������ ����������� �������� ���������� ����, ����� ������ �������� value ��� a!. ��������,

xv5!cat junk
!rm junk
!echo"%5"
xv6!expr%6+1
������������� ������� ������ � ���������� 5, �������� �� � ����������� ���������� 6 �� �������. ��� ����, ����� ���������� �� ������������ �������� ! � �������� ������� ������� value, ��������� ����� ��� \. ��������,
xv7\!date
�������� �������� !date � ���������� 7.
xbzlabel
xbnlabel
��� ��� ������� ��������� ��������� ����������� return code (��� ��������) �� ���������� ������� �������� XENIX (!command) ��� ��������� �������� � ������ ������� � ��������� �����. ��� �������, ����������� ����, ���������� ��������� ���� �����, ���������� ������ size:
xv55
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT