Join Kevin Skoglund for an in-depth discussion in this video Piping output to input, part of Unix for Mac OS X Users.
- View Offline
- Exercise Files
Up until now we've been seeing how to direct input and output, but we've been…doing it to files and from files.…So we have to have these files as sort of the intermediary step between them.…What would be great as we could actually take the output from a command and use that…as the input into another command, without having to go to a file in between.…It's something that you are going to use all the time in Unix.…In fact you'll probably use it more often that you will either of those file redirects.…To do it, we use something that we called the pipe.…I'm just going to type one just so you see what it looks like.…
We hold down the Shift key and then the Backslash.…That's the key that is above the Return key.…You get this upright pipe.…So that's what I refer to whenever you hear me say pipe and typically we say we…pipe something into something, right?…We use it as a verb as well.…So if we have something like echo "Hello World", we know that would…normally output to our Terminal, but if instead we use the pipe, we can redirect…
- Moving around the file system
- Creating and reading files
- Copying, moving, renaming, and deleting files and directories
- Creating hard links and symbolic links
- Understanding user identity, file ownership, and sudo
- Setting file permissions with alpha and octal notation
- Changing the PATH variable
- Using the command history
- Directing input and output
- Configuring the Unix working environment
- Searching and replacing using grep and regular expressions
- Manipulating text with tr, sed, and cut
- Integrating with the Finder, Spotlight, and AppleScript
Skill Level Beginner
1. Introduction to Unix
2. Filesystem Basics
3. Working with Files and Directories
4. Ownership and Permissions
5. Commands and Programs
6. Directing Input and Output
7. Configuring Your Working Environment
8. Unix Power Tools
9. Useful Mac-Only Commands and Techniques
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.