Moderators: SecretSquirrel, notfred
> cat plus.sh
#!/bin/sh
echo $1 + $2 = `expr $1 + $2`
>
> ./plus.sh 3 4
3 + 4 = 7
>notfred wrote:
- Code: Select all
> cat plus.sh
#!/bin/sh
echo $1 + $2 = `expr $1 + $2`
>
- Code: Select all
> ./plus.sh 3 4
3 + 4 = 7
>
radix wrote:It's like you need to create a file plus.sh with the content suggested? I am guessing you never used Linux before, hehe.

bthylafh wrote:At the prompt type "chmod 700 plus.sh", then "./plus.sh".
dmitriylm wrote:I used chmod uog+rwx plus.sh which should be fine as well.

Return to Linux, Unix, and Assorted Madness
Users browsing this forum: No registered users and 2 guests