20 lines
297 B
Bash
Executable File
20 lines
297 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
argomento="$1"
|
|
path="PREFIX/share/aiuto"
|
|
|
|
if [ -f "${path}/${argomento}" ]; then
|
|
cat "${path}/${argomento}"
|
|
|
|
elif [ -n "$argomento" ]; then
|
|
grep -ilr "$argomento" "$path" | \
|
|
xargs -n 1 argomento-aiuto | \
|
|
sort
|
|
|
|
else
|
|
find "$path" -type f -exec basename '{}' \; | sort
|
|
|
|
fi;
|