website/bscripts/ls_to_a.py

10 lines
193 B
Python
Raw Normal View History

2022-06-11 10:32:33 +00:00
# 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>')