mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-11-21 17:32:24 +01:00
chore: put dispaly help in function
This commit is contained in:
parent
58686dccc4
commit
c9d16e53f6
@ -1,10 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
while getopts ":h" option; do
|
show_help() {
|
||||||
echo "This script modifies file names"
|
local OPTIND
|
||||||
echo "-l lowerize file names"
|
while getopts ":h" opt ; do
|
||||||
echo "-u uppercase file names"
|
echo "This script modifies file names"
|
||||||
echo "-r recurse into directory"
|
echo "-l lowerize file names"
|
||||||
echo "[-r] <sed pattern> specify sed pattern that will be executed on file names"
|
echo "-u uppercase file names"
|
||||||
echo "-h show this help information"
|
echo "-r recurse into directory"
|
||||||
done
|
echo "[-r] <sed pattern> specify sed pattern that will be executed on file names"
|
||||||
|
echo "-h show this help information"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
show_help "$@"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user