WUT_Computer_Science/EOPSY/task1/modify.sh

16 lines
359 B
Bash
Raw Normal View History

2022-03-18 13:12:00 +01:00
#!/bin/bash
2022-03-18 13:26:33 +01:00
show_help() {
local OPTIND
while getopts ":h" opt ; do
echo "This script modifies file names"
echo "-l lowerize file names"
echo "-u uppercase file names"
echo "-r recurse into directory"
echo "[-r] <sed pattern> specify sed pattern that will be executed on file names"
echo "-h show this help information"
done
}
show_help "$@"