whois -h whois.cymru.com $IP_ADDRESS
Create a command alias in your preferred shell environment alias asn="whois -h whois.cymru.com" and then use asn $IP_ADDRESS instead.
alias asn="whois -h whois.cymru.com"
asn $IP_ADDRESS