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
#!/usr/bin/awk -f | |
# Usage 0: awk '!NF{exit}{print}' file | |
# Usage 1: print_till_empty_line.awk file | |
# Usage 2: cat file | print_till_empty_line.awk | |
NF {exit} | |
{print} |
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
import dateutil.parser | |
def get_string_type_and_value(string): | |
""" Return the type and value of the string parameter's content """ | |
# int? | |
try: | |
value = int(string) | |
return "int", value | |
except ValueError: | |
pass |