Skip to main content
Commonmark migration
Source Link

#Bash + coreutils, 34 36

Bash + coreutils, 34 36

Using the same base conversion technique as other answers, but I chose base 19. I think it should work for any odd base between 19 and 35.

x=(light dark)
echo ${x[19#`cat`%2]}

#Bash + coreutils, 34 36

Using the same base conversion technique as other answers, but I chose base 19. I think it should work for any odd base between 19 and 35.

x=(light dark)
echo ${x[19#`cat`%2]}

Bash + coreutils, 34 36

Using the same base conversion technique as other answers, but I chose base 19. I think it should work for any odd base between 19 and 35.

x=(light dark)
echo ${x[19#`cat`%2]}
added 36 characters in body
Source Link
Digital Trauma
  • 73k
  • 9
  • 112
  • 264

#Bash + coreutils, 34 36

Using the same base conversion technique as other answers, but I chose base 19. I think it should work for any odd base between 19 and 35.

x=(light dark)
echo ${x[19#`cat`%2]}
x=(light dark)
echo ${x[19#`cat`%2]}

#Bash + coreutils, 34 36

Using the same base conversion technique as other answers, but I chose base 19. I think it should work for any odd base between 19 and 35.

x=(light dark)
echo ${x[19#`cat`%2]}

#Bash + coreutils, 34 36

Using the same base conversion technique as other answers, but I chose base 19. I think it should work for any odd base between 19 and 35.

x=(light dark)
echo ${x[19#`cat`%2]}
added 4 characters in body
Source Link
Digital Trauma
  • 73k
  • 9
  • 112
  • 264

#Bash + coreutils, 34 3736

Using the same base conversion technique as other answers, but I chose base 19. I think it should work for any odd base between 19 and 35.

(x=(19#`cat`%2))&&echo light||echolight dark)
echo ${x[19#`cat`%2]}

#Bash + coreutils, 34 37

Using the same base conversion technique as other answers, but I chose base 19. I think it should work for any odd base between 19 and 35.

((19#`cat`%2))&&echo light||echo dark

#Bash + coreutils, 34 36

Using the same base conversion technique as other answers, but I chose base 19. I think it should work for any odd base between 19 and 35.

x=(light dark)
echo ${x[19#`cat`%2]}
added 35 characters in body
Source Link
Digital Trauma
  • 73k
  • 9
  • 112
  • 264
Loading
deleted 1 character in body
Source Link
Digital Trauma
  • 73k
  • 9
  • 112
  • 264
Loading
Source Link
Digital Trauma
  • 73k
  • 9
  • 112
  • 264
Loading