Chapter 5 Editing Text Files. Basic Concept A text editor works on a file buffer that is a memory copy of a disk file The disk file is not updated until.

Slides:



Advertisements
Similar presentations
1 SEDIT & S/REXX SEDIT and S/REXX Mainframe-caliber tools for UNIX Offered by Treehouse Software, Inc.
Advertisements

CS 497C – Introduction to UNIX Lecture 8: The vi/vim Editor Chin-Chih Chang
Mainframe-caliber tools for UNIX Treehouse Software, Inc.
A Guide to Unix Using Linux Fourth Edition
Web Content Management System Website Maintenance Demonstration Introduction to Macromedia Contribute Jamie Uprichard.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
VIM: The basics Tang Wai-Chung, Matthew (MaFai) 29/12/2006.
CS 497C – Introduction to UNIX Lecture 17: - The GNU emacs Editor Chin-Chih Chang
Vi Editor TA for ITIS3100: Xu Fei
Linux+ Guide to Linux Certification, Second Edition
Chapter 5 Editing Text Files
1 Using Editors Editors let you create and edit ASCII files UNIX normally includes two editors: vi and Emacs Vi and Emacs are screen editors: they display.
CSCI 330 T HE UNIX S YSTEM Editing files. E DITOR C ONCEPTS Editing a file is to modify the content of a file Text editor: Enter and modify text in a.
Using Linux Text Editors. Use Non-Graphical Linux Text Editors Graphical Text Editor.
1 Unix Text Editors Creating files on the Unix system.
Chapter 3 Mastering Editors
Ch 101 Chapter 10 Introduction to Batch Files. Ch 102 Overview A batch file is a text file that contains an ordered series of commands.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Introduction to vi (a Unix, Linux, and Windows text editor)
More on Linux - vi Opening Discussion zWhat did we talk about last class? zYou will use the command line a lot in this course. So lets review.
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1 © Copyright IBM Corporation 2008 Unit 7 Editing.
Introduction to Vim Robbie CSCI2100 Data Structures Tutorial 3.
1 © 2014 John Urrutia. All rights reserved. Chapter 7 The “ Emacs “ Editor.
How to Create a Document in Google Drive By Tressa Beckler.
UNIX Intro vi  vi is the standard UNIX text editor v Contents 1.Why use vi ? 2. vi Basics 3.Moving Around 4.Inserting Text.
Editors And Debugging Systems Other System Software Text Editors Interactive Debugging Systems UNIT 5 S.Sharmili Priyadarsini.
Tera Term Brian Smith Chris Vasse Zaheemat Adetoro William Newton Tom Presgraves.
Text editors Why should I use an editor ? It is very important to able to use at least one text mode editor a text mode editor is so useful on remote machines.
Unix Editors. u Editors in Unix come in two general flavours: –modal editors have "modes" v generally input mode and command mode –input mode allows entry.
Tony Kombol.  Why text edit?  Many programs and features require configuration ▪ Configuration is kept in files ▪ Usually in the /etc directory  Changes.
Unix Session IV.
Text Editing February 2 nd, 2004 Class Meeting 3.
1 of 47 Chapter 4: The vi Editor – First Look Copyright ©2008 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved.
Chapter Three Text Editing1 System Programming Text Editing.
VI EDITOR University of Mississippi. Vi Editor What is Vi ? ▫Vi is a screen based editor. ▫The screen of your terminal will act as a window into the file.
Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.
1 © 2012 John Urrutia. All rights reserved. Chapter 6 The vi Editor.
Getting Started with Linux Linux System Administration Editors.
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
Lesson 4-Mastering the Visual Editor. Overview Introducing the visual editor. Working in an existing file with vi. Understanding the visual editor. Navigating.
Chapter Three The UNIX Editors.
Linux Class #03. File Access Permissions Types of users in Linux: Local User (u) Group User (g) Other User (o) Each User can have 3 types of permissions:
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
PacNOG 6: Nadi, Fiji Editing, vi & Configuration Files Hervey Allen Network Startup Resource Center.
1.Introduction to SPSS By: MHM. Nafas At HARDY ATI For HNDT Agriculture.
Text editing and more basic commands CS 2204 Class meeting 3 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Agenda Using vi Editor Starting vi Session Command / Input Modes Entering Text Editing Text Saving Edited File Aborting Editing Session.
Summer 2015 SILICON VALLEY UNIVERSITY CONFIDENTIAL 1 Introduction to UNIX / Linux - 2 Dr. Jerry Shiao, Silicon Valley University.
Use a Real Editor! Using Emacs. Session Goals To understand why we use Emacs To understand how you can use Emacs to enhance your productivity in editing.
Word 2010 Text Basics In this lesson you'll learn the basics of working with text, including how to insert, delete, select, copy, cut, paste, and replace.
Chapter 28. Copyright 2003, Paradigm Publishing Inc. CHAPTER 28 BACKNEXTEND 28-2 LINKS TO OBJECTIVES Table Calculations Table Properties Fields in a Table.
Getting Started with Linux Linux System Administration Editors.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
CS:414 introduction to Unix and Linux
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
Presentation By:- Komal Sadhwani
Guide To UNIX Using Linux Third Edition
Vi Introduction Tony Kombol.
Linux 104 Training Module File Editing.
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
Linux System Administration Editors
Text Editors Vim (Chapter 6) Emacs (Chapter 7)
Emacs CSC 135.
C151 Multi-User Operating Systems
Linux Operations and Administration
The Emacs Editor Read: Forouzan, Appendix C
Grauer and Barber Series Microsoft Word Chapter One
CSCI The UNIX System Editing files
In the last class… The vi basics command, input and ex mode
Day 5 Emacs Editor David A. Gaitros Department of Computer Science
Presentation transcript:

Chapter 5 Editing Text Files

Basic Concept A text editor works on a file buffer that is a memory copy of a disk file The disk file is not updated until we save the memory buffer Common UNIX text editors – ed – pico – vi – emacs, ue, XEmacs, emacs21

Table 5.1 Common Functions of LINUX Text Editors A text editor works on a file buffer that is a memory copy of a disk file Usually the disk file is not updated until we save the memory buffer

Figure 5.1 First pico screen display

Figure 5.2 Saving a file with a name in pico

Table 5.2 Keystroke Commands and Their Actions in pico

Table 5.3 Important Cursor Movement Keystroke Commands in pico

Figure 5.3 Cut and pasted linespaced text in pico

Figure 5.4 LINUX vi screen with example script file

Figure 5.5 Operating modes of the vi text editor

Figure 5.6 The vi start-up screen

Table 5.4 Examples of vi Command Syntax

Table 5.5 Important Keys for the Insert Mode

Table 5.6 Important Commands for the Command Mode

Figure 5.7 Saved file firstvi

Figure 5.8 Final form of file firstvi

Table 5.7 Cursor movement and Keyboard Editing Commands

Table 5.8 Examples of the Syntax for the yank and put Commands

Table 5.9 Examples of the Syntax for the substitute Command

Table 5.10 Important Environment Options for vi

Figure 5.9 First emacs screen display

Table 5.11 Important emacs Commands

Table 5.12 Important emacs Cursor Movement and Editing Commands

Figure 5.10 The emacs display of the file alien

Figure 5.11 The file alien2 after the buffer contents have been saved

Table 5.13 Important Keyboard Macro Commands

Figure 5.12 The file datafile with 10 rows of data

Table 5.14 Important emacs Kill and Yank Commands

Table 5.15 Interactive Search and Replace Actions

Figure 5.13 The layout of the first XEmacs screen display

Figure 5.14 Initial display of datafile in XEmacs

Table 5.16 XEmacs Pull-Down Menu Choices Described

Table 5.17 XEmacs Toolbar Button Descriptions

Figure 5.15 File alien after being edited in XEmacs

Table 5.18 Important Readline Variables

Table 5.19 Commonly Used Bindable Readline Commands