Set of files and scripts for Embedded Lab 1
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/sh -
-
- dir="$1"
- pref="$2"
- start="$3"
- stop="$4"
-
- if [ -z "$dir" -o -z "$start" -o -z "$stop" ]; then
- echo "Usage: $0 <dir> <prefix> <start> <stop>" >&2
- exit 1
- fi
-
- mkdir -p "$dir"
- cd "$dir"
-
- for i in $(jot $(($stop - $start + 1)) "$start"); do
- mkdir "$pref$i"
- done
|