Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still need to consolidate more
- Loading branch information
Andy C
committed
Feb 17, 2022
1 parent
f304908
commit fac83ef
Showing
7 changed files
with
54 additions
and
49 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# TSV utiltiies | ||
# | ||
# Usage: | ||
# source test/tsv-lib.sh | ||
|
||
time-tsv() { | ||
### Run a task and output TSV | ||
benchmarks/time_.py --tsv "$@" | ||
} | ||
|
||
tsv2html() { | ||
### Convert TSV to an HTML table | ||
web/table/csv2html.py --tsv "$@" | ||
} | ||
|
||
tsv-row() { | ||
### Usage: tsv-row a b c | ||
local i=0 | ||
for cell in "$@"; do | ||
if test $i -ne 0; then | ||
echo -n $'\t' | ||
fi | ||
|
||
# note: if this were QTT, then it would be quoted | ||
echo -n "$cell" | ||
|
||
i=$((i + 1)) | ||
done | ||
|
||
echo # newline | ||
} | ||
|
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