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
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'