MCT260-Operating Systems I Operating Systems I Using Text Editors.

Slides:



Advertisements
Similar presentations
Creating a new ASCII file Output usually goes to screen Output can be redirected to a file using the output redirection operator > (greater than symbol)
Advertisements

Advanced Topics Object-Oriented Programming Using C++ Second Edition 13.
MCT260-Operating Systems I Operating Systems I Navigating the File System.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
MCT260-Operating Systems I Operating Systems I Introduction to Operating Systems.
© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with the Command- Line Interface Chapter 14.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
MCT260-Operating Systems I Operating Systems I Routine File Management Part One.
MCT260-Operating Systems I Operating Systems I Routine File Management Part Two.
Guide To UNIX Using Linux Third Edition
MCT260-Operating Systems I Operating Systems I Customizing the User Interface.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
MCT260-Operating Systems I Operating Systems I Interfaces to Operating Systems.
© 2010 The McGraw-Hill Companies, Inc. All rights reserved Mike Meyers’ CompTIA A+ ® Guide to Managing and Troubleshooting PCs Third Edition Working with.
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
MBAC 611.  We have been using MS Access to query and modify our databases.  MS Access provides a GUI (Graphical User Interface) that hides much of the.
Lesson Objectives Explain the use of binary codes to represent characters Explain the term “Character set” Describe with examples (for examples ASCII and.
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Faculty: Anita Kanavalli Department of CSE M S Ramaiah Institute of Technology Bangalore E mail-
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Topics Introduction Hardware and Software How Computers Store Data
The Command Line Interface. The OS files IO.sys MSDOS.sys Command.com IO and MSDOS are hidden files, COMMAND.COM shows in directory listings.
Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
Unix Basics Chapter 4.
A Guide to Unix Using Linux Fourth Edition
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Chapter 2 Computer Hardware
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
Hans-Peter Plag October 9, 2014 Session 2 Storing Information File Formats Accessing Information Processing Information.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
CS151 Introduction to Digital Design
What is a computer? A computer is a device that:
Agenda Regular Expressions (Appendix A in Text) –Definition / Purpose –Commands that Use Regular Expressions –Using Regular Expressions –Using the Replacement.
Editors And Debugging Systems Other System Software Text Editors Interactive Debugging Systems UNIT 5 S.Sharmili Priyadarsini.
SEC (1.4) Representing Information as bit patterns.
Representing Characters in a computer Pressing a key on the computer a code is generated that the computer can convert into a symbol for displaying or.
Text Editing February 2 nd, 2004 Class Meeting 3.
Ch 91 Pipes, Filters and Redirection. Ch 92 Overview Will use redirection to redirect standard input and standard output.
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
Week 9 - Nov 7, Week 9 Agenda I/O redirection I/O redirection pipe pipe tee tee.
Agenda Character representation Numerical Conversions ASCII EBCDIC
File and Folder CLI Commands 12/24/ Agenda Overview of OS functions and the SHELL Internal v External Commands Command History Making & Modifying.
Data Representation.
BASIC WORD PROCESSORS WEEK 5. BASIC WORD PROCESSORS Word Processor Word processor is a program which is used to edit text files and format them with font,
1 Problem Solving using Computers “Data....Representation, and Storage.
M204 - Data Representation
Command Prompt Chapter 9 Pipes, Filters, and Redirection ©Richard Goldman 11/30/2000 Revised 10/16/2001.
ASCII AND EBCDIC CODES By : madam aisha.
Representing Characters in a Computer System Representation of Data in Computer Systems.
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
2. Data Formats. Introduction Examples pp Real World Data Computer Data Input device Dear Mom: Keyboard … Digital camera …
Project Assignment Snake Game/Car Acceleration Meter Min 10 Pages 10 min Presentation Max 5 group members Submitting Date: lab 2:Dec 27, 2014 Lab 3: Dec.
THE CODING SYSTEM FOR REPRESENTING DATA IN COMPUTER.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Binary Representation in Text
Binary Representation in Text
INFS 211: Introduction to Information Technology
Data Transfer ASCII FILES.
Representing Information as bit patterns
Data Encoding Characters.
TOPICS Information Representation Characters and Images
Lecture 3 ISE101: Computing Fundamentals
Representing Characters
Chapter Four UNIX File Processing.
Learning Intention I will learn how computers store text.
ASCII and Unicode.
Presentation transcript:

MCT260-Operating Systems I Operating Systems I Using Text Editors

MCT260-Operating Systems I 2 Primary Learning Objective Manipulate Text Files Using Built-in Text Editors

MCT260-Operating Systems I 3 Specific Learning Objectives Identify and define the key terms used with text editors Use text editors built into the operating system to create text files Create a text file using the COPY CON command View a text file using the TYPE command Use redirection operators in CLI

MCT260-Operating Systems I 4 Text Files Letters and simple punctuation that makes up words, sentences, and paragraphs. Typically in IT, the term text refers to text stored as ASCII code (that is, without any formatting). Objects that are not text include graphics, numbers (if they're not stored as ASCII characters, and program code.

MCT260-Operating Systems I 5 ASCII Stands for American Standard Code for Information Interchange The original standard ASCII coding scheme used 7 bits (128 characters) to represent all upper &lower case letters, 0-9, punctuation, and special control characters (See page 97) Extended ASCII uses 8 bits (256 characters) added foreign-language, graphical & scientific characters. ( É, û, ß, µ)

MCT260-Operating Systems I 6 Other Character Sets EBCDIC (pronounced "ehb-suh-dik" ) is a binary code for alphabetic and numeric characters that IBM developed for its larger operating systems. ANSI’s first 128 characters are the same as ASCII but the second 128 depends are the language supported Unicode uses 16 bits (65,536 characters) of which about 21,000 are Chinese ideographs

MCT260-Operating Systems I 7 Built-In Text Editors Notepad – Create or edit text files without formatting. Used for batch files, in coding HTML and other programming languages. MS-DOS Editor – Create or edit files using the EDIT.COM command (actually a small application). Uses similar to Notepad. COPY CON – Create but not edit small files. WordPad – Like MS Word it uses formatting so the actual file size will be larger.

MCT260-Operating Systems I 8 Viewing Text Files from CLI Use MS-DOS Editor Use the TYPE command

MCT260-Operating Systems I 9 Using Redirection Operators In CLI, the OS expects input from the standard input device or keyboard and sends or directs output to the standard output device or monitor. To send output or input to/from a device other than the standard one, you redirect or change the destination/source with redirection operators Some of the redirection operators are output ( > ), input ( > )

MCT260-Operating Systems I 10 Output & Appending Redirection Operators Output is the greater than symbol ( > ) If you want to redirect output to a file/printer, specify the name of the file or printer after the symbol. If the filename exists, the file will be overwritten. dir > filename dir > prn To append, to add to an existing file use ( >> ). date >> filename

MCT260-Operating Systems I 11 Input Redirection Operator Although the OS expects the input to come from the keyboard, it can come from a file instead. Input is the less than symbol ( < ) If you want to redirect input to a process or command, specify the name of the file or printer after the symbol. Command < filename DEL One\*.* < y.txt

MCT260-Operating Systems I 12 Piping Output to the MORE Filter A filter is a command that can modify the output of another command. The MORE filter or command is an external command that displays a screen of output, pauses, and then displays “— More—” which permits you to continue when ready. The pipe operator ( | ) redirects the output produced by one command so that the output then becomes the input for another command. [command] | MORE TYPE syllabus.txt |MORE

MCT260-Operating Systems I 13 Summary Text Files ASCII and other character sets Built-In Text Editors Viewing Text Files from CLI Redirection Operators

MCT260-Operating Systems I 14 Homework Assignment Reading –Windows XP Textbook – pp –CLI Textbook - pp , Lab Exercise 7: Text Files Due Date: A Week from Next Tuesday