website/bscripts/ls_to_a.py

10 lines
170 B
Python

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