Skip to main content
1 of 2
Bibek_G
  • 549
  • 1
  • 7
  • 19

You can very well use echo for that purpose.

$ cat new
echo 1
$ number=$(./new)
$ echo $number
1

I think that serves the purpose.

comment below if I mis-assumed something

Bibek_G
  • 549
  • 1
  • 7
  • 19