I am trying to make a .sh programm , which will read the user input , pass it into an integer , write the integer into a file , then read the file , pass the contents of it in another integer , and the echo the last integer I am trying this
Code:
#! /bin/bash
touch value
read val
echo "$val" > value
cat value | set $val2
echo "$val2"
but , after all , is SET for that porpuse ? Can you give mesome corrections?