website/bscripts/ls_to_a.py

9 lines
193 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><t>')