III. NAZARIY MATERIALLAR
42
script utilitasidan so`ng –a
variantdan foydalaniladi, aks holda script buyrug`i
mavjud faylning ustiga yozadi. Quyidagi misolda seans script utilitasi orqali yozib
olinyapti:
$ script
Script started, file is typescript
$ date
Sun Jan 20 10:28:56 PST 2008
$ who am i
alex
pts/4 Jan 8 22:15
$ apropos vim
Vim (1)
- Vi IMproved, a programmers text editor
Vimdiff (1)
- edit two or three versions of a file with…
Vimtutor (1)`
- the vim tutor
$exit
Script done, file is typscript
script seansini to`xtatish uchun exit buyrug`idan foydalaniladi. Siz cat, less,
more yoki editor buyruqlari orqali yaratilgan fayllarni ko`rishingiz mumkin.
$ cat typescript started on Sun Jan 20 10:24:44 2008
$ date
Sun Jan 20 10:28:56 PST 2008
$ who am i
alex
pts/4 Jan 8 22:15
$ apropos vim
Vim (1)
- Vi IMproved, a programmers text editor
Vimdiff (1)
- edit two or three versions of a file with…
Vimtutor (1)`
- the vim tutor
$exit
Script done, file is typscript
Agar siz vim, emacs yoki boshqa tahrirlagich(editor)
lar bilan faylni
tahrirlamoqchi bo`lsangiz, typescript faylning oxirgi qatorlarida ^M ta belgilardan
bartaraf etish uchun dos2unix ni qo`llashingiz mumkin.