!/bin/bash

array=( $@ ) len=${#array[@]} _domain=${array[$len-1]} _args=${array[@]:0:$len-1}

echo "Domain: $_domain" echo "All Args before $_domain are: $_args"

  • @jil

Comments and Reviews

This web page has not been reviewed yet.

rating distribution
average user rating0.0 out of 5.0 based on 0 reviews
    Please log in to take part in the discussion (add own reviews or comments).