PIPES, FILTERS, AND REDIRECTION Additional Adds by David Sims.

Slides:



Advertisements
Similar presentations
How to Add a Proper Heading To a Word Document Michelle Lowe – Media Specialist – 12/4/2013.
Advertisements

Clicking on the link for the.tns file gives you will get the following screen: Select Save File and click OK.
Intro to Computers!.
Word Moving the Insertion Point. Using the Arrows  Moves one character to the right  Moves one character to the left  Moves one line up  Moves one.
Basics of Excel Please sit in the back if you are inexperienced with Excel—Heather will be there to help.
MACREX Indexing Software. Getting Started: Basic Basics.
CIS 118 – Intro to UNIX Shells 1. 2 What is a shell? Bourne shell – Developed by Steve Bourne at AT&T Korn shell – Developed by David Korn at AT&T C-shell.
Boardmaker 6 Basic Tutorial
PacNOG 6: Nadi, Fiji Using Commands in Linux Hervey Allen Network Startup Resource Center.
Using Commands Introduction to Linux June 16, 2009 Papeete, French Polynesia Hervey Allen.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
C Pre-Course Workshop Terence Lee QT406 -> PQ607
Using Pine to send your ICS111 homework First Log in into UNIX using SSH either from home (If you have previously installed SSH or from the Lab. Once in.
Activity One Use the Windows Explorer program to create a new folder. Name the folder by your first name. Click on the windows explorer icon then highlight.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
Command Console Tutorial BCIS 3680 Enterprise Programming.
Planet Order Create an easy way to remember the names of the planets in order from the Sun. Make up a silly sentence. Each word in the sentence should.
Managing Multiple Projects Lesson 9. Skills Matrix SkillsMatrix Skill Manage consolidated projectsCreate a consolidated project plan Create dependencies.
File Management and Organisation © Copyright William Rowan 2007.
Etomo introduction A) Start “cygwin-bash” on desktop The command prompt window opens up B) Enter “etomo” and hit enter This quick guide will show how to.
Spreadsheet. Objectives Create a new blank workbook. Create a new blank workbook. Identify user interface elements that you can use to accomplish basic.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Checking for Collisions Ellen Yuan Under the direction of Professor Susan Rodger at Duke University June 2014.
USING THE LIBRARY PATRON CATALOG. Part 1 Easy Search.
Using the “CLI” Unix / Linux Preparation Course May 25 Djibouti.
"Two of the most famous products of Berkeley are LSD and Unix. I don't think that this is a coincidence.” Anonymous.
Customizing forms and writing QuickBooks Letters Lesson 15.
I Can… Define basic file management and related terms Identify levels of a file system Identify and explain ways to view files in Windows OS Explain the.
UNIX command line. In this module you will learn: What is the computer shell What is the command line interface (or Terminal) What is the filesystem tree.
You will find applications that are installed on the computer. Go to Start – Programs (depending on view Start – All Programs). All applications installed.
SharePoint You must use Internet Explorer Single click only on links and buttons There are two handouts 1.Importing a Web Part into SharePoint 2.Adding.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Mail merge I: Use mail merge for mass mailings Perform a complete mail merge Now you’ll walk through the process of performing a mail merge by using the.
Introduction to MS Word Surrey Services for Seniors.
1 Formatting and Editing Skills. 2 Word Processing Word processing software application software used for creating text documents letters, memos, and.
Using Commands Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
CMPS 1371 Introduction to Computing for Engineers MatLab.
Processing Lab 3 – Header issues and trace editing Bryce Hutchinson Objectives: Fixing elevation issues Define an LMO function Pick first breaks Kill traces.
U3A Computing Beginners Class Leader – Brian Moore Week 2 of 10 weeks. Mondays 4:15 to 5:45 pm.
IPad Basics For Students Set Classroom Rules.
Formatting and Editing Skills Apply formatting and editing features and operational keys appropriately.
Using Commands Unix / Linux Preparation Course May 6, 2012 Serrekunda, The Gambia.
Basic Computer and Word Functions, part 1 Read the information and use to answer the questions in the Basic Computer and Word Functions Study Guide.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
© Oxford University Press 2003 At any time during the tour you can use the  or  arrow keys to go back and look at the previous slide. Left click the.
ResponseCard XR Answering Questions. Polling The host computer must be able to receive your responses, but it can only do so when the polling is open.
Lab Assignment 1 Getting Started. Submitting the LABS for grading Subject line of message: CTEC 110 WA Lab 1 Assignments Attachment file names:
A Genomics View of Unix. General Unix Tips To use the command line start X11 and type commands into the “xterm” window A few things about unix commands:
Ch 91 Pipes, Filters and Redirection. Ch 92 Overview Will use redirection to redirect standard input and standard output.
ICT 111 – PART 2 APPLICATIONS SOFTWARE /11: APPLICATIONS SOFTWARE Remember: Computer hardware VS human body Computer operating systems VS human.
COMPUTER APPLICATIONS COURSE LEARN HOW TO USE COMPUTERS.
Using the “CLI” Unix / Linux Preparation Course June 9, 2013 Lusaka, Zambia.
ICT Training Session #4 10 th February 2011 Using Microsoft Excel 2007  Exploring the home screen  Entering data  Formatting & sorting  Equations.
File and Folder CLI Commands 12/24/ Agenda Overview of OS functions and the SHELL Internal v External Commands Command History Making & Modifying.
All sections to appear here Welcome to my pptPlex Slide Show, this can be executed in either two ways: 1.As a normal PowerPoint slide show: Example hit.
You may have already done this… Download the class files to the desktop Expand those files into root of USB stick Change your USB stick to drive “Z”!
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Computer Vocabulary Computer
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Java On the ENB 116 Computers The JDK is now available on the ENB 116 computers. You can use a classroom computer rather than your own laptop or CIRCE.
Command Prompt Chapter 9 Pipes, Filters, and Redirection ©Richard Goldman 11/30/2000 Revised 10/16/2001.
CA095. On the Desktop: Double Click the folder: CA095 Data Files Double click: Orange P4 Data Files Double click: writers It will automatically open in.
we are going to write our Assembly language program as sample ex01.asm. So that we can attempt our assigment.
Starting your Pentatonic Song Project With Sibelius STOP! You cannot start until your Pentatonic Song worksheet has been completed & approved by the teacher!
Papeete, French Polynesia
Setting up Categories, Grading Preferences and Entering Grades
Microsoft Excel 101.
University of Warith AL-Anbiya’a
Presentation transcript:

PIPES, FILTERS, AND REDIRECTION Additional Adds by David Sims

Redirection of Standard I/O (Input/Output) CTEC 110 Pipes, Filters & Redirection (22 slides)2

Redirection of Standard I/O (Input/Output) CTEC 110 Pipes, Filters & Redirection (22 slides)3

Redirection of Standard I/O (Input/Output) Not all Commands deal with standard Input and Output Symbols used for redirection: > (Greater Than) < (Less Than) >> (Double Greater Than) CTEC 110 Pipes, Filters & Redirection (22 slides)4

Redirection Can redirect both Input and Output of filter commands Some of the most common filter commands are: – SORT – MORE – FIND CTEC 110 Pipes, Filters & Redirection (22 slides)5

Piping  Standard output of one program is used as standard input to next program  Used with filter commands to further refine data  Not limited to two programs. Can use several pipes on one line. CTEC 110 Pipes, Filters & Redirection (22 slides)6

Combining Commands with Pipes and Filters A command must be on either side of pipe Output of one command is input of the other Redirection is different and should not be confused with piping CTEC 110 Pipes, Filters & Redirection (22 slides)7

Using SORT CTEC 110 Pipes, Filters & Redirection (22 slides)8

Using SORT Open up a Command Prompt and change to Z:\CTEC110\MyScripts Try the following: 1.SORT MERCURY VENUS EARTH 3 MARS JUPITER Press F6 function key Results should be similar to previous slide! CTEC 110 Pipes, Filters & Redirection (22 slides)9

2.SORT Press F6 function key What kind of results did you get? Was it as expected? CTEC 110 Pipes, Filters & Redirection (22 slides)10 Using SORT

3.SORT 333 ##3 # Press F6 function key What results did you get here? Is it what was expected? CTEC 110 Pipes, Filters & Redirection (22 slides)11 Using SORT

SORT Command with Redirection Try these out (Copy PERSONAL.FIL and STATE.CAP to MyScripts)… You will use the “Command Prompt” for the following… Copy from the MyScriptsBook directory to MyScripts directory on the Z-Drive! 1.COPY Z:\CTEC110\MyScriptsBook\STATE.CAP 2.SORT < STATE.CAP 3.SORT STATE.CAP 4.SORT /R < STATE.CAP 5.SORT /+17 STATE.CAP … CTEC 110 Pipes, Filters & Redirection (22 slides)12

SORT Command with Redirection 6.SORT /+17 STATE.CAP > SORTED.CAP 7.TYPE SORTED.CAP 8.SORT /+17 STATE.CAP /O BYCITY.CAP 9.TYPE SORTED.CAP 10.TYPE BYCITY.CAP CTEC 110 Pipes, Filters & Redirection (22 slides)13

Using the MORE Filter Try the following: Remember! COPY Z:\CTEC110\MyScriptsBook\PERSONAL.FIL 1.DIR C:\WINDOWS | MORE 2.Press Enter until back at system prompt 3.DIR C:\WINDOWS | MORE 4.Press the Space Bar 5.DIR C:\WINDOWS | MORE 6.Q … CTEC 110 Pipes, Filters & Redirection (22 slides)14

Using the MORE Filter 7.DIR C:\WINDOWS | SORT /+39 | MORE 8.Press Space Bar until end and then Q 9.MORE PERSONAL.FIL 10.Press Space Bar until end and then Q 11.TYPE PERSONAL.FIL | MORE 12.Press Space Bar until end and then Q … CTEC 110 Pipes, Filters & Redirection (22 slides)15

Using the MORE Filter 13.MORE PERSONAL.FIL /C MORE SORTED.CAP BYCITY.CAP /C 15.Press the Space Bar 16.MORE SORTED.CAP BYCITY.CAP 17.Press the Space Bar 18.Close all open windows and return to desktop environment, the GUI CTEC 110 Pipes, Filters & Redirection (22 slides)16

Extended Features of MORE Try the following: 1.Click Start/Run 2.Type in only CMD.EXE /X 3.Click OK 4.CD /d Z:\CTEC110\MyScripts 5.MORE PERSONAL.FIL 6.Press Enter twice 7.Press Q … CTEC 110 Pipes, Filters & Redirection (22 slides)17

Extended Features of MORE 8.MORE PERSONAL.FIL 9.Key in P 10.Key in 5 11.Press the = sign 12.Press S 13.Key in 3 Leave the command prompt open… CTEC 110 Pipes, Filters & Redirection (22 slides)18

Using the FIND Filter Try the following: 1.CLS 2.FIND “Smith” PERSONAL.FIL 3.FIND /V “Smith” PERSONAL.FIL 4.FIND /N “Smith” PERSONAL.FIL 5.FIND /C “Smith” PERSONAL.FIL 6.FIND /I “Jones” PERSONAL.FIL 7.FIND “Jones” PERSONAL.FIL /I CTEC 110 Pipes, Filters & Redirection (22 slides)19

Combining Commands 1.FIND “Teacher” PERSONAL.FIL | FIND “CA” 2.FIND “Teacher” PERSONAL.FIL | FIND “CA” > TEACHER.FIL 3.TYPE TEACHER.FIL 4.FIND “PrOfeSSor” PERSONAL.FIL | FIND “AZ” | SORT 5.Press the up arrow key once 6.Use the left arrow-move to P in PERSONAL.FIL … CTEC 110 Pipes, Filters & Redirection (22 slides)20

Combining Commands 7.Key in /I  uppercase letter (i) 8.Press the End key 9.Press Enter 10.DIR C:\WINDOWS | SORT /+39 | MORE 11.Press Space Bar until end and then Q 12.DIR C:\WINDOWS | FIND “ ” | SORT /+39 CTEC 110 Pipes, Filters & Redirection (22 slides)21

END OF PIPES, FILTERS, AND REDIRECTION