This is a very simple script
#!/usr/local/bin/bash set -e if [ "$#" -lt 1 ] then echo "Please insert at least one argument" exit else echo -e "\c" fi if [ -h "$1" ] then echo "$1 is a symbolic link" else echo "$1 in not a symbolic link" fi
My question is: how to change the script for recognize more than 1 argument? I have 4 files, and I want the script to return
$1 is a symbolic link $2 is not a symbolic link $3 is not a symbolic link
How could I do this?