Passing arguments to a program is one of the common operations across any language you use. In this article, we are going to see how to parse arguments in bash scripts using bash builtin getopts function.
Tag:
Bash function
- Bash TipsBASHLinuxLinux BasicsLinux CommandsLinux Tips & TricksUnix/Linux Beginners
A Bash Function To Extract File Archives Of Various Types
By skBy sk 8K viewsThere are so many applications available to extract various types of archive files. Remembering…
- Bash TipsBASHCommand line utilitiesFAQLinuxLinux BasicsLinux CommandsLinux Tips & TricksTips and TricksUnix/Linux Beginners
[Bash Tips] Rename Files Without Typing Full Name Twice In Linux
By skThis brief guide explains how to rename files without typing full name twice in…
- Bash TipsBASHLinuxLinux BasicsLinux CommandsTips and TricksUnix/Linux Beginners
[Bash Tips] How to cp or mv and cd in one command
By skBy sk 4.6K viewsThe other day we learned how to cd and ls in one command. Today…
- Bash TipsBASHCommand line utilitiesLinuxLinux AdministrationLinux BasicsLinux CommandsLinux Tips & TricksOpensourceTerminal hacksTips and TricksUnix/Linux Beginners
[Bash Tips] How To cd and ls in one command
By skBy sk 14.4K viewsWhenever I cd into a directory, the next thing I spontaneously do – listing…