bash with parameters

#!/bin/bash
echo "the $1 eats a $2 every time there is a $3"
echo "bye:-)"
 
save as eat.sh
bash eat.sh dog bone moose 
the dog eats a bone every time there is a moose bye:-)
 
$1/$2/$3 =var in order of supplied parms 

Popular posts from this blog

[SOLVED] IDM WAS REGISTERED WITH A FAKE SERIAL NUMBER

The Twitter Followers Playbook

Hidden Wiki