Add ASCII_Gen_PRE.py
This commit is contained in:
17
ASCII_Gen_PRE.py
Normal file
17
ASCII_Gen_PRE.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Create a files called VyOSart.txt
|
||||
# https://www.asciiart.eu/image-to-ascii
|
||||
|
||||
leList = open("VyOSart.txt", "r").read().split("\n")
|
||||
|
||||
# Add a \\n at the start of the string
|
||||
outstr = '"\\\\n'
|
||||
|
||||
# Create string
|
||||
for thing in range(0,len(leList)):
|
||||
outstr += leList[thing] + "\\\\n"
|
||||
|
||||
# Add a finishing quotation mark
|
||||
outstr += '"'
|
||||
|
||||
# Return the command to paste
|
||||
print(f"set system login banner pre-login {outstr}")
|
||||
Reference in New Issue
Block a user