This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Function definition is here | |
def printme(): | |
return """ | |
August 2nd 2017, 17:12:01.139 message:CCM4152E Unable to process message Error: InvalidDataException: Unknown Group [043] scope:test st:R instance_name:test-10.244.2.15:8080 level:ERROR app_port:8080 type:syslog log_time:17120100 t_id: 26 app_name:test @timestamp:August 2nd 2017, 17:12:01.139 env_name: DEV u_id: thread_name:Task-1 level_value:40,000 log_code:CCMSS000 @version:1 level_code:E host:10.244.2.15 logger_name:Listener | |
August 2nd 2017, 17:12:01.139 message:CCM4152E Unable to process message Error: InvalidDataException: Unknown Group [043] scope:test st:R instance_name:test-10.244.2.15:8080 level:ERROR app_port:8080 type:syslog log_time:17120100 t_id: 26 app_name:test @timestamp:August 2nd 2017, 17:12:01.139 env_name: DEV u_id: thread_name:Task-1 level_value:40,000 log_code:CCMSS000 @version:1 level_code:E host:10.244.2.15 logger_name:Listener | |
""" | |
# Call function here | |
for line in printme().splitlines(): | |
line = line.strip() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
md () { | |
pandoc $1 | lynx -stdin | |
} | |
md2libre() { | |
pandoc ~/Desktop/$1.md -V geometry:margin=1in -s -o ~/Desktop/$1.odt | |
} | |
md2pdf() { | |
pandoc ~/Desktop/$1.md -V geometry:margin=1in -s -o ~/Desktop/$1.pdf |
NewerOlder