Fix the shell script with the fewest keystrokes!
Start file
#!/bin/bash
a = 5
b = 10
sum = $a + $b
echo $sum
mul = $a * $b
echo $mul
End file
#!/bin/bash
a=5
b=10
sum=$((a + b))
echo $sum
mul=$((a * b))
echo $mul
2,4c2,4
< a = 5
< b = 10
< sum = $a + $b
---
> a=5
> b=10
> sum=$((a + b))
7c7
< mul = $a * $b
---
> mul=$((a * b))
Unlock
52 remaining solutions by
signing in and submitting your own entry
589 active golfers, 2544 entries
26
08/27/2024 at 04:48AM
27
08/27/2024 at 04:48AM
28
08/27/2024 at 04:47AM
29
08/27/2024 at 04:47AM
30
08/27/2024 at 04:47AM
31
08/27/2024 at 04:47AM
32
08/27/2024 at 04:47AM
33
08/27/2024 at 04:47AM
34
08/27/2024 at 04:47AM
35
08/27/2024 at 04:47AM
36
08/27/2024 at 04:47AM
37
08/27/2024 at 04:47AM
38
08/27/2024 at 04:47AM
39
08/27/2024 at 04:47AM
40
08/27/2024 at 04:46AM
41
08/27/2024 at 04:46AM
42
08/27/2024 at 04:46AM
43
08/27/2024 at 04:46AM
44
08/27/2024 at 04:46AM
45
08/27/2024 at 04:46AM
46
08/27/2024 at 04:46AM
47
08/27/2024 at 04:46AM
48
08/27/2024 at 04:46AM
49
08/27/2024 at 04:46AM
50
08/27/2024 at 04:46AM
51
08/27/2024 at 04:45AM
52
08/27/2024 at 04:45AM
53
08/27/2024 at 04:45AM
54
08/27/2024 at 04:45AM
55
08/27/2024 at 04:45AM
56
08/27/2024 at 04:45AM
56
08/27/2024 at 04:45AM
57
08/27/2024 at 04:45AM
58
08/27/2024 at 04:45AM
60
08/27/2024 at 04:45AM
61
08/27/2024 at 04:44AM
62
08/27/2024 at 04:44AM
63
08/27/2024 at 04:44AM
64
08/27/2024 at 04:44AM
65
08/27/2024 at 04:44AM
66
08/27/2024 at 04:42AM
70
08/27/2024 at 04:42AM
71
08/27/2024 at 04:41AM
72
08/27/2024 at 04:41AM
73
08/27/2024 at 04:41AM
74
08/27/2024 at 04:41AM
75
08/27/2024 at 04:41AM
78
08/27/2024 at 04:41AM
83
08/27/2024 at 04:41AM
84
08/27/2024 at 04:41AM
87
08/27/2024 at 04:41AM
89
08/27/2024 at 04:41AM