Spoken Tutorial

Using File Descriptors - English

BASH Tutorials - English 23
  • 1
    Introduction to BASH Shell Scripting
  • 2
    Basics of Shell Scripting
  • 3
    Command Line arguments and Quoting
  • 4
    Globbing and Export statement
  • 5
    Array Operations in BASH
  • 6
    More on Arrays
  • 7
    Conditional execution
  • 8
    Nested and multilevel if elsif statements
  • 9
    Logical Operators
  • 10
    Arithmetic Comparison
  • 11
    String and File attributes
  • 12
    Conditional Loops
  • 13
    More on Loops
  • 14
    Case statement
  • Using File Descriptors
  • 16
    Basics of functions
  • 17
    More on functions
  • 18
    Arrays and functions
  • 19
    Advance topics in a function
  • 20
    Recursive function
  • 21
    Basics of Redirection (error handling)
  • 22
    More on Redirection
  • 23
    Here document and Here string
  1. Instruction Sheet
Outline:
Using File Descriptors Introduction on fd Assign the file descriptor (fd) to file for output(exec fd > filename) Explained using an example of 'date' and 'echo' Closing the output fd(exec fd<&-) Explaination on error for the statements defiened after closing fd Assign the file descriptor (fd) to file for input(exec fd < filename) Closing the input file descriptor(exec fd<&-) Explaination on input fd using 'cat'

Assignment

Status:

Code files

  • code/fdassign.sh
  • code/fdread.sh
  • code/

Status:

Slides

  • slides/3t-logo.pdf
  • slides/file-descriptor.pdf
  • slides/file-descriptor.tex
  • slides/

Status:

  • FOSSEE Project
  • Scilab Project
  • Oscad
  • Python
  • CFD
  • OR-Project
  • Aakash Labs
  • Co-learn
  • Education Mission
  • Software Training
  • Creation
  • News
  • About
  • Training
Developed at IIT Bombay
This work is licensed under Creative Commons