Meeting Minutes - sh - Posix Shell Session - Day 5 - July 10, 2020
Here are the topics covered on the last and final day of this session,
- introducing function
- how it is basically a custom built-in command which we define
- emulating ‘cd’ command using custom ‘replicate_cd’ function
- introducing positional parameters
- howto get current program name through
"${0}" - howto get all positional parameters through
"${@}" - difference between
"${@}"and"${*}" - howto get number of given positional parameters using
"${#}" - introducing shell patterns
- how we can use
*anywhere in the filename to match multiple files - howto filter filename matching using prefix with
* - howto filter filename matching using suffix with
* - howto we can use range pattern to match different characters in filenames
- introducing
findcommand - providing
-maxdepthtofindcommand - filtering filenames through
-nameinfindcommand - two types of post processing after find
- find with while-do-done and
readcommand - providing
-execto find command - a very small introduction to BRE (Basic Regular Expression) through
grepcommand - importance of
edcommand and howgrepandsedcommands are one functionalities ofedcommand - writing shell script
- basic struction of a shell script
- the
#!importance - providing shell name after
#! - how a shell script is basically a
functionstored as file - using
chmod +xto make a normal text file as excutable - thanking everyone who attended this 5 day session