English  

كتب session example

اذا لم تجد ما تبحث عنه يمكنك استخدام كلمات أكثر دقة.

عرض المزيد

مثال للجلسة (معلومة)


لدينا ملف يسمى 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

المصدر: wikipedia.org