Spoken Tutorial

String and File attributes - 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
  • String and File attributes
  • 12
    Conditional Loops
  • 13
    More on Loops
  • 14
    Case statement
  • 15
    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:
String and File Attributes comparison in BASH String comparison String comparison using == operator String comparison using != operator Simple program of user id to demnostrate string comparison File attributes comparisons File attributes discussed are -f, -s, -w, -nt, -ot

Assignment

Status:

Code files

  • code/strcompare.sh
  • code/fileattrib2.sh
  • code/fileattrib.sh
  • code/

Status:

Slides

  • slides/bash-11-string-comparison.pdf
  • slides/3t-logo.pdf
  • slides/bash-11-string-comparison.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