Search Results

Search: Posts Made By: el3ctr0nic47
1,673
Posted By el3ctr0nic47
i almost forgot this as well, which is...
i almost forgot this as well, which is implementing whether or not the user input is an actual number or not

so i did this along with the if statement


if [[ $# -eq 2 || $# != [0-9] ]]

...
1,673
Posted By el3ctr0nic47
checking variables + arithmetic operator help
i'm trying to make a script to simply add numbers together

for example i have a file script file called add

[john@home ~] add 1 2 3 4 5
15

however i want the user to put at least 3 numbers...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 06:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy