Is it possible to set "permanent variable" in shell? For example, when I log in I want to print message "Hello user, this is your xxx log in"
The number of logins would be stored in permanent variable, and each time it would be incremented by script e.g
#!/bin/bash
echo "Hello Mr. This is your $number log in"
$number=$(($number+1))
The next log in would print the incremented variable and increment it again.
How could I set a variable like that?