This file contains hidden or 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
PS1=[\d/\t] \h:\W \u$ |
This file contains hidden or 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
from openpyxl import load_workbook | |
workbook = load_workbook(filename='./tmp/book.xlsx', read_only=True) | |
range = workbook.defined_names['a_named_range'] | |
for sheet_title, sheet_coords in range.destinations: | |
sheet = workbook[sheet_title] | |
for row in sheet[sheet_coords]: | |
print "\t".join(str(cell.value) for cell in row) |
This file contains hidden or 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/env awk -f | |
NR > 1 { | |
for (i = 1; i <= header_count; i++) { | |
print headers[i], $i | |
} | |
} | |
NR == 1 { | |
header_count = split($0, headers) |
OlderNewer