website/bscripts/ls_to_a.py

10 lines
196 B
Python

# Gets ls output and transform it into <a> tag
while True:
try:
a = input()
except:
break
print('<a href=\'' + a + '\'>' + a.replace('.html', '') + '</a>&emsp;')