Shell Scripting Tutorial – Part 3

GNU 3.1. Interactive editing What is sed? A Stream Editor (sed) is used to perform basic transformations on text read from a file or a pipe. The result is sent to standard output. The syntax for the sed command has no output file specification, but results can be...

Shell Scripting Tutorial – Part 2

BASH ENVIRONMENT 2.1. Initialization System-wide configuration files /etc/profile When invoked interactively with the –login option or when invoked as sh, Bash reads the /etc/profile instructions. These usually set the shell variables PATH, USER, MAIL, HOSTNAME...

Shell Scripting Tutorial – Part 1

BASH SCRIPT BASICS 1.1. Shell programs General shell functions – The UNIX shell program interprets user commands, which are either directly entered by the user, or which can be read from a file called the shell script or shell program. Shell scripts are...