Parameters in bash script
May 15, 2023 —
Conrad Maaijen
Positional Parameters
Arguments passed to a script are processed in the same order in which they’re sent. The indexing of the arguments starts at one, and the first argument can be accessed inside the script using $1. Similarly, the second argument can be accessed using $2, and so on. The positional parameter refers to this representation of the arguments using their position.
Create a directory and go into it.
May 12, 2023 —
Conrad Maaijen
Sometime the smallest bash scripts will help you stopping from doing the same thing over and over again.
E.g. typing mkdir sample and then cd sample.