Store a parameter in a file and read it as a variable cat file.txt 121 read -r myNumber < file.txt echo "The number is: $myNumber" The number is: 121