mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-26 05:08:36 -06:00
14 lines
230 B
Bash
14 lines
230 B
Bash
#!/bin/sh
|
|
|
|
# It makes the parent folders (if needed) while touch-ing.
|
|
|
|
if [ $# -ge 1 ]; then
|
|
for f in $@
|
|
do
|
|
mkdir -p "$(dirname "$f")"
|
|
touch "$f"
|
|
done
|
|
else
|
|
echo "No filenames passed."
|
|
exit 1
|
|
fi
|