This repository has been archived on 2023-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/bin/bash
|
|
|
|
if [[ -z $3 ]]; then
|
|
res=$(sed 's/!!/:arrow_right:/g' src/inc/liens.txt)
|
|
else
|
|
shift 2
|
|
res=$(sed 's/!!/:arrow_right:/g' src/inc/liens.txt | grep -i "$@")
|
|
fi
|
|
|
|
[[ $res ]] && echo "$res" || echo "Aucun lien trouvé avec **$@**"
|
|
|
|
exit 0
|