Fix the shell script!
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
View Diff
2,4c2,4 < a = 5 < b = 10 < sum = $a + $b --- > a=5 > b=10 > sum=$((a + b)) 7c7 < mul = $a * $b --- > mul=$((a * b))
Solutions by @Gordan6freeman:
Unlock 7 remaining solutions by signing in and submitting your own entry
Created by: @u_hossein Tweet
497 active golfers, 2065 entries
Solutions by @Gordan6freeman:
31
#216 - Preston Pysh܁ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ / @Gordan6freeman
04/22/2022 at 06:13PM
32
#>232 - Preston Pysh܁ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ / @Gordan6freeman
04/22/2022 at 06:11PM
34
#>250 - Preston Pysh܁ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ / @Gordan6freeman
04/22/2022 at 06:09PM
35
#>268 - Preston Pysh܁ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ / @Gordan6freeman
04/22/2022 at 06:06PM
37
#>303 - Preston Pysh܁ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ / @Gordan6freeman
04/22/2022 at 06:02PM
39
#>320 - Preston Pysh܁ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ / @Gordan6freeman
04/22/2022 at 05:50PM
40
#>328 - Preston Pysh܁ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ / @Gordan6freeman
04/22/2022 at 05:49PM