set variable command

Hi all,

I want to set a variable in ksh shell \(prompt\) and echo the value.

$ set x=5
$echo $x

But it is returning null. Can any one please help.

Thanks in advance

Just do:

x=5
echo $x

should work fine :slight_smile: