العربية  

books session example

If you do not find what you're looking for, you can use more accurate words.

View more

مثال للجلسة (Info)


لدينا ملف يسمى hello.c مع المحتويات الآتية:

int main(int argc, char **argv) { printf("Hello world! "); return 0; }

ويمكن للشخص استخدام جلسة TECO الآتية (مع ملاحظة أن الأمر هو "*" و"$" هو كيفية تأثير مفتاح الإفلات) لتغيير "أهلا" إلي "مع السلامة":

*EBhello.c$$ Open file for read/write with backup *P$$ Read in the first page *SHello$0TT$$ Search for "Hello" and print the line printf("Hello world! "); The line *-5DIGoodbye$0TT$$ Delete "Hello", insert "Goodbye", and print the line printf("Goodbye world! "); The updated line *EX$$ Copy the remainder of the file and exit

Source: wikipedia.org