Simple bash script- assignig values

bash

#1

!/bin/bash

let n1=500/2

n2='echo $n1'

echo $n2

i want assign value of n1 i.e, 250 for n2 but the out put i am getting is

echo $n1


#2

@megarockstar13352,
Have you tried....

cmd="ls"
$cmd

2014 2015 hardware.txt

let n1=500/2

echo $n1

250

n2="echo $n1"

echo $n2

echo 250

=====================

A lot of article's can be found with a google search
== discussions /opinions ==
[your question] site:stackoverflow.com