У нас вы можете посмотреть бесплатно Shell tutorial part 15: combining pipelining and input/output redirection или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Your dreams have finally come true, we can now construct super-powerful commands using all the techniques learnt so far - pipelining, and input/output redirection. Note: although most other shells can perform advanced redirection as shown in this video, usually the syntax for them is a bit different. So, if you want to use other shells instead of tcsh - read up on their advanced redirection syntax. ----------------------- Video content: 0:16 : Every command has two outputs - the error output (also called stderr), which is used for printing error messages, and the standard output (also called stdout), which is used for printing everything else. 0:53 : |. The "pipe" symbol tells the shell to use the output of the command that appears before the pipe as the input for the command that appears after the pipe. 1:27 : &. By writing & after | we can pipeline both stdout and stderr at the same time. This is exactly the same as using & together with right-angled-bracket or double-right-angled-bracket. 1:54 : It is possible to redirect a command's output and pipeline it, at the same time. For example, one can redirect the stdout of one command to /dev/null, which is the "trash can" of the operating system, and then pipeline the stderr to the next command. 2:56 : If one uses pipelining, it is possible to redirect every output (stderr and stdout) of every command in the whole pipeline. 4:36 : left-angled-bracket |path-to-commands-file|. This allows passing a commands file to a program that usually receives keyboard input. The command will executed every command in the file, one by one. This can be used even for commands that receive paths to files as inputs. 5:14 : It is possible to combine input and output redirection with pipelining! 5:36 : single right-angled-bracket ! |file-path|. By using ! together with a single right-angled-bracket, we can "force" the shell to perform the redirection, even if the supplied path already exists. If it does exist, the shell will overwrite it with the new output (erase the previous content and then enter the new content). If it doesn't exist, it will work exactly as using a right-angled-bracket without !. ----------------------- Relevant links: The complete pipleining and input/output redirection playlist: • Pipelining and input/output redirection The complete shell tutorial playlist: • A short tutorial to using the command...